Question T2146
Visible to All Users

Check dirty survey

created 6 years ago

Hi, I'm working to check is an survey dirty or not by using survey.onValueChanged, but there is a problem that onValueChanged will be called even with the default Value. Is there any way for this?
Thank you.

Answers approved by surveyjs Support

created 6 years ago

Hello,

You can check whether new value is equal to the default value in your onValueChanged event handler. Or iterate through all questions and check they are equal to the default values.

Thanks, Serge
SurveyJS Team