Description
The gform/conditionalLogic/applyRules/end
event fires after all conditional logic rules have been evaluated and applied. This event is particularly helpful in conversational forms, enabling developers to react to field visibility changes, trigger animations, or update the UI in response to the final form state.
Usage
1 2 3 4 5 | document.addEventListener( 'gform/conditionalLogic/applyRules/end' , handleApplyRulesEnd ); const handleApplyRulesEnd = ( event ) => { // do whatever you need to here }; |
Parameters
Parameter | Type | Description |
---|---|---|
formId | number | The ID of the form where conditional logic was evaluated. |
fields | array | An array of field IDs that are subject to the conditional logic evaluation. |
isInit | boolean | Indicates if the evaluation is part of the form’s initial setup (true) or a result of user interaction (false). |
Since
This event was added in Gravity Forms v2.7.5.1
Location
This event is located in /assets/js/conditional_logic.js