Question T7990
Visible to All Users

Are disabled questions submitted?

created 3 years ago

If I disable a question with a default answer, does it's value get saved when the survey is submitted? I could use the read-only option on the question but disabling/enabling is conditional so I have to use enableIf.

Thank you.

Answers approved by surveyjs Support

created 3 years ago

Hello Steve,
Yes, they are. We have survey.clearInvisibleValues property to control what to do with invisible questions, but we do not do anything with disabled questions.
You can modify survey results as you need. You can modify the example in the docs by checking question.isReadOnly property and delete the related key from the JSON.

Thank you,
Andrew
SurveyJS Team

    Comments (1)

      Hi Andrew, thanks for clarifying, and for your quick response!