A hidden field is a field that is not bound to a control, which means it is not accessible by the user in a case folder.
Hidden fields can be created by dragging and dropping a control, and then deleting the control. Deleting the control will not delete the field. This field that remains behind can be used as temporary variable to work with rules.
Data entered in temporary fields is retained when most rules execute, but is cleared during submit and when saving the folder.
1. In this example a form was created where buttons can be used to show and hide part of the form. The buttons on the top toggle the value in the label (blue) between Show and Hide. When the label says Hide, the panel (red) is hidden with a format rule. Otherwise, the panel is shown. On form load, a rule sets the label’s value to Show.

2. Here are the two ways the form can look in the case folder:

3. When this form was created, the hide/show label was not bound to a case field. Instead, it was bound to a temporary field, called “SwitchLabel”.
4. Back in the UI Designer, the label is deleted. The temporary field it was bound to remains in the form as a hidden field. Shown below is the Field panel before and after the label’s deletion, with the field shown in red:
|
5. In the case folder, the buttons’ functionality is the same, but there is no unnecessary text on the form.

6. If you wish to remove a hidden temporary field, clicking the Delete icon (highlighted in red) in the Fields panel. Clicking this icon will remove the hidden field from your form.
