MaestroThe UI design product. | Form Builder | All versions This feature is related to all versions.
A Maestro business rule JavaScript requires an info object parameter, passed to it on its invocation, to perform a desired action.
The info
parameter is an object describing the event which triggered the rule, or it can be the object returned from a success or failure call in a remote data handler. The value of the info object strongly depends on the rule's implementation. For most rules, the returned info object is undefined.
The info object can be described with the following structure:
info = {
widgetTypes: {},
images: [],
fonts: [],
scripts: [],
styleImages: [],
ruleScripts: {},
extraHtml: {},
formView: formView
}
A Form Builder can always check the values of the info object in JavaScript by:
info object
debugger;
console.log("first name is ");
For more information, see Debug Maestro Forms.
info
parameter in the developer tools console to see that this event has been triggered by Angular code, which is the framework Maestro forms run within.Next, learn about a data object.