Script Rule
MaestroThe UI design product. |
Form Builder | All versions
This feature is related to all versions.
Maestro allows you to return the result of a calculation.
To create a Script rule:
- Inside the Maestro Editor, select a component from the View pane.
- In the Properties pane, click the Create Rule button.
- Click the Script link, located under the Calculation heading.
-
Define the JavaScript-based logic of the rule within the code editor. As a Calculation rule, the Script rule should return the data value for the component the rule is attached to.
- Click Save.
The rule will appear in the Properties pane, under the Rules heading.
You can only attach one rule of each type to a component.
Next, learn about the Editable if rule.