Skip to content

Conversation

@scratchdigital
Copy link
Contributor

@scratchdigital scratchdigital commented Feb 28, 2025

When running turnstile verification on GravityForms, we should be using gform_validation, instead of gform_pre_submission.

Currently if turnstile fails validation, it will return a 403 which GravityForms won't see. The form simply doesn't show an error, or re-render the form.

This change moves the verification to the validation hook, and uses the native GravityForms error messaging to return the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants