Skip to content

Conversation

@scratchdigital
Copy link
Contributor

@scratchdigital scratchdigital commented Feb 11, 2025

The latest version of GravityForms no longer emits a submit event on form submission. Instead, we need to use the gform/submission/pre_submission filter.

I have refactored the code which handles the re-render of turnstile on gravityforms validation to now use the "gform/post_render", and "gform/submission/pre_submission" events.

This also removed the need for the race condition (timeout of 10s). As we encountered issues where the user would try to submit again before turnstile had re-rendered.

@ElliotSowersby ElliotSowersby merged commit 6649d27 into ElliotSowersby:master Feb 12, 2025
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