Show If Rule

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

Maestro allows you to show a component if a condition is true.

Create a Show If Rule

To create a Show 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 Show If link, located under the Visibility heading.
  4. Define the JavaScript-based logic of the rule within the code editor. As a Visibility rule, the Show If rule should return true to show the component or false to hide the component.
  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.

Visibility Rules

There are 4 types of visibility rules:

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