Form Components Visibility Using Flow Data
- 19 Jan 2022
- 2 Minutes to read
-
Print
-
DarkLight
This documentation version is deprecated, please click here for the latest version.
Form Components Visibility Using Flow Data
- Updated on 19 Jan 2022
- 2 Minutes to read
-
Print
-
DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
Overview
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.
Example
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.
Debug
- 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.
Was this article helpful?