You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can I customise the default value of other. My other values are represented by integer value however, other appears as the string "other". I want to assign an int value to other before it goes down to the server?
Data response with Other selected
The text was updated successfully, but these errors were encountered:
I tried the below but it breaks as 35 doesn't exist and I don't want to add other to the list if showOtherItem is set.
survey.onValueChanged.add(function (sender, options) {
if (options.name === "EmploymentSector") {
const question = sender.getQuestionByName("EmploymentSector");
if (question ['isOtherSelected']) {
// When "Other" is selected, set the value to 35
question .value = 35;
}
}
});
How can I customise the default value of other. My other values are represented by integer value however, other appears as the string "other". I want to assign an int value to other before it goes down to the server?
Data response with Other selected
The text was updated successfully, but these errors were encountered: