xpertbot / craft-wheelform

Craft CMS 4 Form with Database integration
MIT License
66 stars 32 forks source link

Recaptcha error handling #290

Closed kevadamson closed 1 year ago

kevadamson commented 1 year ago

So {% if errors[field.name] is defined %} error{% endif %} works on field error handling, how can I do similar if recaptcha is not ticked? I tried {% if errors[form.recaptcha] is defined %} error{% endif %} thinking that would work, but it didn't.

xpertbot commented 1 year ago

The Template structure has an example of how you can display it. https://github.com/xpertbot/craft-wheelform#template-structure That error doesn't come from the Form itself. It comes from a session variable.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.