- 19 Jan 2022
- 2 Minutes to read
Form Components Visibility Using Flow Data
- Updated on 19 Jan 2022
- 2 Minutes to read
It is not recommended to introduce these features to new projects. Support for these features have been maintained just to grant time for projects to shift away from legacy content towards the new preferred method: Active Form Flows.
Failure to do so may result in losing work involving legacy content in the future.
A Form control's visibility may be toggled based on Flow data. This is a useful feature for creating simple and well-designed Forms, for example, hiding information on a Form that isn't relevant to a given user. Configure a Form control's visibility by clicking on it and setting its visibility properties in the Properties tab on the right side of the Form Designer.
In this example, create a Flow with two forms. On the first Form, the user will decide whether or not to display information on the following Form.
- In a Designer Folder, create a Flow. This will automatically open the Flow Designer.
- Select the Done outcome path of the Start step.
Add After dialog, select the Show Form step in the Favorite Steps category. Select ADD.
- With the Show Form step selected, in the Properties panel, select PICK OR CREATE FORM
- Select CREATE under Create New. Choose Form. Name the Form. Select CREATE.
- This Form has a Text Box (Email), a CheckBox (ShowEmail), and a Button (Submit).The CheckBox control outputs a Boolean data type, which can be used for Form Component Visibility on the next Form.
- Save and close Form Designer.
- Back in the Flow Designer, select the Submit outcome path of the Show Form step.
- In the Add After dialog, select the Show Form step in the Favorite Steps category. Select ADD.
- With the Show Form step selected, in the Properties panel, select PICK OR CREATE FORM.
- Select CREATE under Create New. Name the Form. Select CREATE.
- This Form has a Label (Email) and two Buttons (Done, Go Back).
- Navigate to the Data panel on the left side, drag and drop Email onto the Form, set Email to be a Label of Data Value.
- In the Email label's Properties panel, expand Behavior.
- Change the Initially Visible Source to From Flow Data.
- Change the Initially Visible Data to "Label Visibility".
- Save and close the Form Designer.
- Back in the Flow Designer, connect the Done outcome path of the second Show Form step to the End step; connect the Go Back step to the first Show Form step.
- Select the second Show Form step. In the Properties panel, under Inputs, select EDIT under Label Visibility.
- In the Pick Data For Input dialog, choose Show Email, select DONE.
- In the Flow Designer, select Debug in the top action panel.
- The first Form in the Flow will display. Fill in the Text Box with an Email, set the checkbox to true, and select Submit to continue to the next Form. The second Form opens and the labels are visible.
- Select the Go Back button.
- The first Form opens again. Set the checkbox to false. Then select Submit, the second Form in the Flow opens, and the labels are not visible.
- Select Done to finish the Flow.