Closed benlilley closed 3 years ago
Hi @benlilley! I don't think the issue you're describing is caused by Captcha, but instead a mistake in the template.
I don't think this syntax is correct:
<input value="{{ old:{{ handle }} }}" ...>
If you're looping over fields using the {{ fields }}
tag, then you should be able to access the old data using {{ old }}
, as described in the docs: https://statamic.dev/tags/form-create#dynamic-rendering
Hope that helps!
You were completely correct, thank you for the heads up and apologies for wasting your time!
First, thanks for building this out, it's saved me a bunch of time.
I am running into a strange issue though which I'm not sure if it's expected or not. When I submit the form (all fields populated) but intentionally don't complete the captcha the page appears to be reloaded and then shows the captcha error but all form fields are now empty. As you can imagine this would definitely be annoying for someone!
My form looks like this:
Any help is appreciated, I'm running the latest version of Statamic and Statamic Captcha on PHP 7.3.