Is it possible to have multiple type of run validation in a survey? I want to run validation after an answer is changed, on next page and on complete survey. Or atleast on next page and on complete survey.
Also I have the preview button enabled, basically on clicking the preview button validations has to happen and on every next button validation has to happen.
Hello Deepesh,
If you validate the question on value change, why do you need to additionally validate questions when a respondent switches to the next page? To my understanding, if you validate values immediately when users change them, you ensure that answers pass validation when users switch to the next page or complete the survey.
This is supported by default. In the default checkErrorsMode: onNextPage mode, the survey validates entered values when users switch to the next page. In this mode, the survey will also validate answers when a user attempts to complete the survey.
Would you please describe your usage scenario so that I can better understand why none of the default checkErrorsMode works for you?
To process your recent inquiry in the most efficient manner, I've extracted it to a separate thread: Survey JS Validation on switching to the Previous Page.
I look forward to your reply.