• e dev

    (@efishinsea)


    If Gravity forms is connected with HubSpot using the add-on Gravity Forms HubSpot Add-On (to post results from the website form into HubSpot) despite the user being shown a warning/error, the form still posts on the backend.

    I had to completely disable Ajax for Gravity Forms to attempt to fix this.

    add_filter('gform_form_args', 'no_ajax_on_all_forms', 10, 1);
    function no_ajax_on_all_forms($args){
        $args['ajax'] = false;
        return $args;
    }
    

    Can this be taken care of in the plugin?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Matt Harrison

    (@matt-h-1)

    Were you seeing the entries in the Gravity Forms entries as well? It shouldn’t be saving there, this plugin should work properly with ajax on.

    I have seen similar things with HubSpot before. They capture forms greedily and will sometimes capture the form data before validation happens if they can.

    Thread Starter e dev

    (@efishinsea)

    No, only in HubSpot, so I presume it is the add-on doing this. I will keep digging.

    and actually, disabling Ajax did not stop the post from going to HubSpot either…

    • This reply was modified 1 year, 3 months ago by e dev.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘if Gravity Forms are connected to HubSpot and use Ajax, form still posts’ is closed to new replies.