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 flows, enabling developers to respond to field visibility changes, trigger animations, or update the UI based on the final form state.
Usage
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. |
| dependentFields | array | An array of field IDs for fields that are dependents of the processed fields (fields inside pages or sections that have been evaluated by conditional logic). |
| 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