JavaScript

Articles

gform/theme/scripts_loaded

The gform/theme/scripts_loaded event can be used to initialize scripts that depend on Gravity Forms front-end form scripts, including the JavaScript gform object.

gform/submission/pre_submission

The gform/submission/pre_submission filter should be used to perform custom actions between a form button (e.g. submit, next, previous) being clicked and the request being posted to the server.

gform/products/product_field_changed

This JavaScript event is triggered when any price changes.

gform/post_render

The gform/post_render event can be used to initialize scripts when a form loads. It is a direct replacement for gform_post_render.

gform/ajax/post_ajax_submission

This filter allows developers to customize or modify the response data, including additional information, custom messages, or altered submission details.

gform/post_init

This event is intended for use by add-ons that depend on core scripts. It fires once per form and provides the form ID as a parameter.

gform/ajax/post_page_change

The gform/ajax/post_page_change event allows developers to to execute custom JavaScript logic after a form submission is processed via AJAX.

gform_is_hidden

The gformIsHidden filter allows developers to customize whether a field is hidden due to conditional logic.

gform_generic_map_field_choices

This Gravity Forms Javascript filter allows third-party developers to change the items shown in a Generic Field Map value field based upon what is selected in the corresponding key field.

gform_merge_tags_supported_input_types

The filter gform_merge_tags_supported_input_types allows users to filter the field types which are available for use in the merge tag drop down.