AI OnAI Off
Hi Daniel,
Bit late to this, if you are still looking for a solution you should consider adding client side validation handler as well for the custom form element. It is a good practice to avoid a server roundtrip for element validation and will ensure reCaptcha validation is triggered on form submit (once all elements are validated).
Refer to this documentation for details on how to validate a form element client side
Hi,
I have implemented custom server side element validator and added this element to the form. I have added recaptcha element to the form as well. Every time the custom validator returns false recaptcha is validated too that causes "Invalid captcha value" on the next submit as recaptcha may be validated only once. Is there any possibility to skip recaptcha validation when at least one element returned false or maybe there is another way to prevent this error message (like refreshing recaptcha)?
Best,
Daniel