Create a Form Load Rule

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

Maestro allows you to create form load rules, which are business rules that are invoked on a form load event. This event is triggered immediately after a page has been loaded. Form load rules can only be applied to a whole Maestro form, so you can't fire this rule on a single field. Load rules are created slightly differently to the way traditional business rules are created in Maestro.

To create a form load rule:

  1. Open a form in the Maestro editor.
  2. Click Form Options.
  3. Select Form Rules and click Create Rule.
  4. Click Load the type of rule from the Create Rule dialog.
  5. Configure the rule by writing a JavaScript that implements desired logic.
  6. Click Save to create the rule.
  7. Click Build and Render Form to see how this rule is displayed when the form is built and rendered.

Next, learn how to how to debug Maestro business rules.