MaestroThe UI design product. | Form Builder | 24.04 This feature was introduced in 24.04
Maestro provides the Initialize Event Hook component (widget), which allows you to add a one-off create event that runs the On Create rule when the object is created. Depending on where you drop this component on the form, the rule may run more than once. For example, if you place this component:
This component is an appropriate place to put any override scripts that use jQuery to implement various custom behaviors on an HTML element. Page load is not always accurate for jQuery scripts if the field is inside nested visibility rules as it has to assess the rule before it starts adding the child elements. This is a field that can be added inside the block with visibility so you can run this on a widget. Each time it is hidden or shown, it will get destroyed and recreated so you need the rule to trigger accurately and this helps with not needing additional flags in visibility rules.
The component is of the data-initialize-event-hook
type.
The following properties are available to the Initialize Event Hook component:
onCreate
alert("On create rule on " + item.id)
Next, learn about the Autotab Controller component.