...
- Click the Edit icon for the Leave Approval Form.
- Click on the Rules icon in the designer toolbar.
- Click the plus icon to Create a new rule.
- Change the name of the rule to Sick Certification.
The Visual Rule Builder consists of 3 wizards:
- Condition wizard - describe the conditions under which a set of actions should be executed
- Action wizard - declare the actions that should be taken when the condition is true
- Else Action wizard - declare the actions that should be taken when the condition is false
- Click the redrule to add the rule.
- Name it Sick Certification.
- Click the Rule Builder button then click Add Condition - this is the Condition wizard
- Select the Type of Leave field from the first dropdown.
- Select is from the second dropdown
- Slide the toggle to the right then enter "Sick" without the quotes in the third field.
- Click Next then click Add Action - this is the Action wizard where you set up actions that will happen if the condition is true
- Select the Certification field from the first dropdown.
- Select as visible from the second dropdown
- Add another action to set the Certification control to required
- Click Next then click Add Action - this is the else action wizard where you set up actions that will happen if the condition is false
- Set the Certification control to hidden
- Add another action to set the Certification control to optional
- Click Finish
- When you are finished, the rule should look like this in the Rule List.
...