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.

Create a Script Rule

To create a Script rule:

  1. Inside the Maestro Editor, select a component from the View pane.
  2. In the Properties pane, click the Create Rule button.
  3. Click the Script link, located under the Calculation heading.
  4. 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.
  5. Click Save.

The rule will appear in the Properties pane, under the Rules heading.

Note

You can only attach one rule of each type to a component.