Configure a Maestro Business Rule

   MaestroPreviously known as Transact Maestro.  |   Form Builder |  v5.1 & Higher This feature is related to v5.1 and higher.

Once a business rule has been created for a Maestro form, you can to write some JavaScript to implement the rule. You can write it yourself, or you can use one of several Rule Helpers to create typo-free code. Rule Helpers are available inside the Rule Editor and allow you to pick fields from a tree structure, and then generate the chosen field name, or associated method calls into the editor source.

Double-click on an item in the tree to insert the field's data reference into the code pane where the cursor is currently located.

Right-click on an item in the tree to bring up the list of rule helpers applicable to that item type. Then select from the list to insert that templated rule code into the source, with the item data reference contained within it.

A Rule Helper used to insert code in the rule source is shown below.

Once generated into the rule source, it is only now necessary to place a '!' in front of the generated code and the non-empty check code is complete.

To illustrate how to insert a 'data.department' text into the JavaScript, double-click the Department field in the tree, so it’s added to the code as shown below.

Next, learn about configuring business rules that are invoked on a form load event.