Setting rules on items
You can set rules that govern how items appear in a form or app page.
About this task
The following steps describe how to add items to your application and to create a sample rule on a form item. The same process would apply to adding a rule to an item on an app page. The rule shows a field if a user selects a specific input. For example, if the employee is full-time, fields appear requesting additional information. If the employee is not full-time, the fields remain hidden.
Procedure
- Add a Select One item to your form. Select the item and the Properties panel displays.
-
Set the title to read
Are you a full-time worker?
, and click the check box beside Required to indicate that the user must fill in this form item to submit the form. -
In the Set Options: section:
- Change the Displayed Value of the first row to Yes.
- Click the Add option button to insert a second option row.
- Change the Displayed Value of the second row to No.
-
Add a Single Line entry to the form.
Click the box to the left of the title.
A red asterisk appears to indicate the item is mandatory and must be completed for the user to submit the form.
-
Change the title to
Where is your work site located?
-
Click the Edit Rules icon for
Where is your work site located?
The Rules window opens. -
Add a Single Line entry to the form.
Click the box to the left of the title.
A red asterisk appears to indicate the item is mandatory and must be completed for the user to submit the form.
-
Change the title to
What is your job title?
-
Click the Edit Rules icon for
Where is your work site located?
The Rules window opens.The rule is set so that if the user states they are a full-time worker, the additional fields appear and request information on the work location and job title.