ValidationRule.Validate called twice on form submit

mahesh kulkarni asked on June 8, 2022 17:56

Hi,

I have implemented the custom validation for recaptcha v3 integration on kentico form. For some reason the validation is called twice and resulting in invalid captcha as at second time it find duplicate request. Any clue why the validation is fired twice?

Thanks, Mahesh Kulkarni

Recent Answers


Jeroen Fürst answered on December 13, 2022 08:48

Hi Mahesh,

Not sure if it helps but the latest Kentico Xperience 13 Refresh 8 (which will be available soon) will contain an out-of-the-box recaptcha v3 integration.

Cheers, Jeroen

0 votesVote for this answer Mark as a Correct answer

Arjan van Hugten answered on January 13, 2023 14:12 (last edited on January 13, 2023 14:12)

For others that encounter the 'Validate' being called twice, double check that you are not registering custom validation providers. In my case, adding FluentValidation by adding services.AddFluentValidationAutoValidation() causes the Kentico validation to be called twice.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.