SaaS CMS has officially launched! Learn more now.

Skip Recaptcha validation when other elements failed



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)?


May 11, 2023 13:22

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 

Jun 15, 2023 7:10
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.