Hello
Is it possible to add new choices to a checkbox question from api code in which there are already choices, because it tries to add new choices (
``survey.getQuestionByName("xxx").choices = [{
"value": "x1",
"text": "x 1"
},
{
"value": "x2",
"text": "x2"
}];```),
I want to add choice to question:
Code "type": "checkbox",
"name": "xxx",
"title": "text text",
"isRequired": true,
"choices": [
{
"value": "y1",
"text": "y 1"
},
{
"value": "y2",
"text": "y 2"
},
]
},
because it adds new choices to the existing ones, the old ones disappear
Regards
Matt