Setting rules on form items
You can set rules that govern how form items appear in a form.
About this task
The following steps describe how to add form items to your application and to create a sample rule on a form item. The rule will show 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.
- Click the item’s title to change it to “Are you a full-time worker?”. Click the check box beside Required to indicate that the user must fill in this form item to submit the form.
-
In the properties side panel, under Options:
- 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.