JavaScript

Articles

gform_post_calculation_events

This filter can be used to register custom methods for triggering calculations.

gform_post_conditional_logic_field_action

The gform_post_conditional_logic_field_action JavaScript action allows developers to perform custom actions when a field is displayed or hidden by conditional logic on the frontend.

gform_datepicker_options_pre_init

Note: the filter has been deprecated. See the gform/datepicker/pre_init filter for updated examples.

gform_calculation_result

This filter can be used to modify the result of a number field calculation or calculated product field.

gform_form_editor_can_field_be_added

This filter fires on the Form Editor page when a field button is clicked or dragged on to the form, it can be used to prevent a field being added to the form if the conditions you define are not met.

gform_product_total

This JavaScript function fires right before updating the product total, allowing users to manipulate the form total.

gform_pre_form_editor_save

This filter fires on the Form Editor page when a form is saved.

gform_post_render

This jQuery hook is fired every time the form is rendered to allow custom jQuery to be executed. This includes initial form load, going to the next/previous page on multi-page forms, form rendered with validation errors, confirmation message displayed, etc.

gform_page_loaded

Process your own custom code after the page is loaded in a multi-page form using the gform_page_loaded

gform_merge_tags

Allows merge tags to be added/removed from the Merge Tag drop down in the admin.