I have a Gravity Forms multi-step form. I need to run my own function when the form is submitted so I'm using the GF hook 'gform_after_submission'

The hook works perfectly on forms that do not utilize AJAX. Since the multi-step form uses AJAX; upon clicking on 'Submit', the form doesn't do anything and the spinner keeps loading.

I know if I could disable AJAX on submit then it would work but there's nothing in GF documentation that shows how I can disable AJAX on form submit (because I still need AJAX for going back and forth the form).

add_action( 'gform_after_submission_1', 'client_registration_process', 10, 2 );
function client_registration_process( $entry, $form ) {

    if ( !empty($form) ) {

        echo "<pre>";
        print_r( $form );
        echo "</pre>";

Please suggest how I can overcome this issue. Thanks!

  • 1
    You really should ask that question the Gravity Forms support. – kero Dec 13 '19 at 17:54
  • @kero I'm developing this site for a client who is using the free version of the plugin. The support won't help you unless you have a paid license. – Khairul Alam Dec 13 '19 at 18:03
  • I'm sorry to hear that, but third party plugins are off topic on WordPress.StackExchange, as you can read in the help center. – kero Dec 13 '19 at 18:12
  • Ok, I didn't know that. I have seen a lot of questions on third-party plugins here. – Khairul Alam Dec 13 '19 at 18:27
  • Yeah, me too. Usually when I know a plugin, I still try to help, but I don't know Gravity Forms, sorry. – kero Dec 13 '19 at 18:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.