Read-Only Rule

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

Maestro comes with the Read-Only rule that limits a form user’s ability to edit component content in a Maestro form. If the rule's JavaScript returns true, a form user can edit an item, such as a component or a field, otherwise, the item is locked and can't be modified. The Read-Only rule is an Editable if rule with a JavaScript return false in it.

The Read-Only rule is useful when you only want to display content in a field, which doesn’t need to be modified.

To create a Read-Only 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 Read-Only link, located under the Editability heading.
  4. Write a JavaScript to implement the logic.
  5. Click Save.

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

Next, learn about a Mandatory If rule.