|
||
The Rules Properties section of this manual describes how you add scripting and logic to individual widgets. Though some widgets, like blocks, can pass on their rules to their children, this methodology does not allow rules to be assigned to several widgets, especially those not related or which do not share inheritances. What if the widgets are scattered throughout the form and cannot easily be wrapped by some block in the structure panel without including other widgets that you do not want to similarly inherit properties? This problem cannot be solved through "Edit Properties" individually for all the widgets concerned.
The "Business Rule" and "Mandatory" field types solve this problem by being central containers for rules and scripts. Other widgets can now share, for example, a script, by pointing to a business rule widget in the their "Edit Properties" dialog.
There are three types of Business Rule field types:
1.General Purpose
These contain the logic that control visibility, editability, data clearing, event firing, triggers and event listening.
2.Error
These generate messages and also prevent submission of the form
3.Warnings
These also generate messages but do not prevent form submission.
4.Mandatory Checkbox Block
Allows you to enforce the activation of at least one checkbox in the block: leaving all of the boxes unchecked will prevent submission of the form.
5.Mandatory Block
You use this to enforce that at least one of the contained form elements are given values.
These rules widgets are intended for advanced users only, though many of their features are no harder to implement than editing some of the properties in the "Rules" tab for each widget. They are a powerful tool for optimizing response times of complex forms