• When you submit a GForm and if there’s a validation error, the widget doesn’t re-load and it’s impossible to submit the form without refreshing and starting from scratch.


    In the console, the following error shows up:
    “Uncaught ReferenceError: turnstile is not defined
    at (index)”

    Another smaller issue is that when you have the “Disable Submit Button” option enabled, the GForm’s button gets disabled on submission and remains disabled after a validation error.

    And an even smaller issue I found by accident was when I changed my API keys, I forgot to “test” them immediately after and the registration form still loaded the widget while the login form did not.

    • This topic was modified 1 year, 10 months ago by davethedon. Reason: Additional feedback
Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Elliot Sowersby

    (@elliotvs)

    Thanks for the info. Everything worked fine on my end last time I tested it with Gravity Forms. I will take a look into this when I get the chance.

    Do your forms work fine with Turnstile disabled?

    Yeah currently the “test” will only disable it on your login forms, just to prevent you from being locked out (can’t login) whilst your are setting up and testing.

    Thread Starter davethedon

    (@davethedon)

    Hi Elliot,

    Yup – forms work as normal when disabled in the aforementioned scenarios. Also, all plugins are up-to-date.

    Also, very logical re. just disabling the login form! Makes perfect sense. ??

    Thread Starter davethedon

    (@davethedon)

    Hi Elliot,

    Any luck replicating this issue; can I be of further help?

    Plugin Author Elliot Sowersby

    (@elliotvs)

    Hi,

    Can you try disabling all plugins except Simple Cloudflare Turnstile and GForms, and see if you still have this issue?

    Thread Starter davethedon

    (@davethedon)

    Hi Elliot,

    I have a test site that mirrors the live site and disabled all plugins on the network and on the site, and then only activated GForm and SCFT. The result was exactly the same:

    https://freeimage.host/i/HcJ40Nt

    It’s a standard contact GForm; what you see is what you get, without any addons or integrations enabled. The form submits via ajax.

    So what happens is if you were to fill the form in and miss out on a mandatory field, it would obviously prompt you. From there the console shows an error: turnstile is not defined. Then if I correct the problem and submit the form, it produces a 403 (again, showing in the console).

    In a case where the Disable button option is on, the button will not re-enable after the incomplete submission.

    • This reply was modified 1 year, 10 months ago by davethedon. Reason: Additional context

    Hi – We also have the issue with the script error occurring if a form fails validation. This is on a multisite installation – not sure if this maybe the issue.

    Thanks!

    Salih K

    (@salihkulangara)

    I am also facing the same issue. We are uisng Gravityforms. I have been trying to integrate this in our forms, and noticed this error last day. Once you submit the form with out the errors, ie there are no field validation errors, then you wont see any issues, but if you have any field validation error then you will see the widget disappears and have this error in console “(index):6 Uncaught ReferenceError: turnstile is not defined“. thus it wont allow you to submit the form again.

    I have been tryin with all three widget options “Managed, Non-interactive and Invisible”, but all have this issue. It happens even on a fresh WP install.

    Thread Starter davethedon

    (@davethedon)

    Hey owebsolutions. You could be onto something…

    Hey Salih. Is yours a multisite?

    Salih K

    (@salihkulangara)

    Plugin Author Elliot Sowersby

    (@elliotvs)

    Thanks for all the info, will take a look into this.

    Thread Starter davethedon

    (@davethedon)

    Hi Elliot. I updated the plugin on Friday and the issue still persists. Have you had any luck with replicating it on your end, or do you require any futher troubleshooting efforts/testing from me?

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Gravity Forms Submission Issue’ is closed to new replies.