Hi, I have a json with many invisible questions.
Codeconst surveyObject = new SurveyLib.SurveyModel(json);
When I do surveyObject.setDataCore({a: 123});
and console.log(surveyObject.data), it will print out a:123 with other invisible questions.
but when I do surveyObject.data = ({a: 123}), this one will print the exact value.
I want to understand the difference between these cz when I run surveyObject.runTrigger, it will cause issue.
When surveyObject.runTrigger, this is based on the data set by surveyObject.setDataCore, or surveyObject.data ?
Hello,
In fact you can choose between setting survey.data or using survey.mergeData.
Thank you,
Andrew
SurveyJS Team