-
I see that addons are not supported. I added plugin to make the Cloudflare Turnstile settings queryable using the graphql query When I go to submit the form, I send back the following:
Field 18 is my turnstile, but I get the error: "Invalid Turnstile captcha response". Could anyone provide some guidance on how I could support this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@joezappie Without having the source code for the Turnstile addon in front of me, my assumption is that you need to process the token, not just submit it as a field. For example, the GF "core" captcha requires the use of specific |
Beta Was this translation helpful? Give feedback.
-
Thanks for the help. I'm still trying to wrap my head around this and writing the PHP to do that. My front end should send the cloudflare token as a field value. such as In my custom plugin, I need to intercept the form submission and add the value as a $_POST value with the correct key. Looking at the code for the turnstile addon that should be My understanding is once that data is in Where I'm hung up is how would I go about registering my own field type like I did try hooking into the gform pre validation, but that hasnt gone over well.
|
Beta Was this translation helpful? Give feedback.
@justlevine Thank you!!! That was almost perfect for being written on a phone lol, heres my final changes incase some one else comes across this. I'll make a pull request with the turnstile addon to hopefully get this supported out of the box.