With the Rules feature, you can create a dynamic user experience that ensures accurate data capture, and enforcement of business rules. Rules allow you to guide the user through the form by hiding questions, or pages, that are not relevant. Rules also allow you to enforce your business validation rules within the form to ensure that data is valid before the form is submitted. The following steps describe how to set rules that require users to enter additional information depending on how the first question is answered.
Rules can be set for four conditions:
You can set data entry items, buttons, and containers to be hidden, or visible.Read-only
You can set buttons and data entry items as read-only or writable.Not Valid
In a data entry item, such as a Single Line Entry field, you can set conditions on what type of information is acceptable. For example, in a time sheet application, you can set a rule that the check out time cannot occur before a check in time.Required
You can choose whether you want data entry items to be mandatory, or optional.
You can add multiple Boolean operators, such as AND, and OR, for each rule. However you cannot mix the two conditions in a rule.
When you set a new rule, an icon appears to the right of the Edit Properties icon. You can use the icon to open the rule and edit it. IBM
® Forms Experience Builder warns you if you attempt to delete a form item used in a rule. If you agree, you delete the rule. If you duplicate a field, the rule is duplicated with it.
When setting rules on Number of Currency form items, you must set the default value of the form item to zero. If the Number or Currency form item is blank, it does not default to zero, and any rule you set will not work properly.
Parent topic: Creating and managing applications