Force AJAX on all forms from GF Settings [RESOLVED]

Hi there, I have some websites where we have forgotten to tick the AJAX option within the Gravity Forms widget.
Is there any way to set ALL forms to use AJAX regardless of what is set in the widget or shortcode?
I feel like this should be an option in the ‘Settings’ section of Gravity Forms, as the majority of people will use the same method for an entire site.
Currently I have to open every single page on the website and manually tick the box, which is quite laborious.

You should be able to force this programmatically with the gform_form_args filter in your theme functions.php file or a custom functions plugin, e.g.

add_filter( 'gform_form_args', 'setup_form_args' );
function setup_form_args( $form_args ) {
    $form_args['ajax'] = true;
    return $form_args;
1 Like

Perfect! This is just what I was looking for - many thanks.

1 Like