Question T6609
Visible to All Users

I am making an API call to validate an answer but on click of next the the validation has not been completed yet and it always says invalid field?

created 4 years ago

I am making an API call to validate an answer but on click of next the the validation has not been completed yet and it always says invalid field.How to go about I most probably want next to be disabled or unavailable until the validation is completed.

Comments (1)

    The issue being that the custom validators run only when next is clicked so I cant disable that as well

    Answers approved by surveyjs Support

    created 4 years ago

    Hello,

    Here is the example of the server-side validation - https://surveyjs.io/Examples/Library?id=validators-server&platform=jQuery&theme=modern#content-js
    I hope it'll help.

    Thanks, Serge
    SurveyJS Team