Admin JavaScript Events
The Elzo Forms admin builder dispatches events when logic elements need to be refreshed after dynamic UI changes such as adding, duplicating, or removing automation rules, automation actions, and conditional logic items.
Refresh logic elements
document.addEventListener('elzo-forms-refresh-logic-elements', function () {
// Reinitialize custom controls that depend on field or automation logic UI.
});
When this event runs
- After adding or duplicating automation rules.
- After adding or duplicating automation actions.
- After adding conditional logic groups or rules.
- When the builder needs conditional logic dropdowns to be recalculated.