Change Rule

   MaestroThe UI design product.  |   Form Builder |  All versions This feature is related to all versions.

Maestro allows you to create a rule that runs a script when the value of a component changes.

Note

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

Create a Change Rule

To create a Change rule:

  1. Open a Maestro form in the Maestro editor.
  2. Select a component from the View pane.
  3. Click Create Rule in the Properties pane.
  4. Click the Change link, located under the Action heading.
  5. Define the JavaScript-based logic of the rule within the code editor. As an Action rule, the Change rule does not need to return anything. It simply performs an action, such as opening a dialog or triggering another rule.
  6. Click Save. The rule will appear in the Properties pane, under the Rules heading.

Action Rules

There are the following types of action rules:

For a complete list of rules, refer to List of Maestro Rules.