Mandatory If Rule

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

Maestro allows you to add a rule that requirea a component to contain a value if a condition is true.

Create a Mandatory If Rule

To create a Mandatory If 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 Mandatory If link, located under the Mandatory heading.
  4. Define the JavaScript-based logic of the rule within the code editor. As a Mandatory rule, the Mandatory If rule should return true to indicate that the component is mandatory or false to indicate that the component is not mandatory.
  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.