Survey-library: How to reset dropdown value

Created on 1 Nov 2018  路  2Comments  路  Source: surveyjs/survey-library

It may be a stupid question but I would like to ask...How to reset dropdown value to display "Choose..."?
I have tried value and defaultValue property but they don't work.

question

All 2 comments

Hello "No such thing as a stupid question" :)

you can do something like this: survey.getQuestionByName("qName").value = null;

Here an example: https://plnkr.co/edit/Oe2LdJXl8P4TizwMxwGn?p=preview

It works :D

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aslanbeily picture aslanbeily  路  4Comments

ian-emsens-sb picture ian-emsens-sb  路  3Comments

dmitrykurmanov picture dmitrykurmanov  路  3Comments

faso picture faso  路  4Comments

wollerman picture wollerman  路  4Comments