Question T5497
Visible to All Users

Tagbox: is it possible to add an item in the selection  if it does not exist in the drop down  tagbox

created 4 years ago (modified 4 years ago)

[Ticket cloned from T4963: The checkbox or radio button selector is not appearing but on test tab it shows. see my attachment will explain more more. ]

Hello!!
is it possible to add an item in the selection  if it does not exist in the drop down  tagbox

On 9/28/2020 11:34 AM, Andrew Telnov [surveyjs Support] wrote:

Answers approved by surveyjs Support

created 4 years ago

Hello,

You need also to set
clearInvisibleValues: "none"
to survey options.

See live example: https://plnkr.co/edit/Wxe3vJdiU3X74xS8

Thank you,
Alex
SurveyJS Team

    created 4 years ago

    Hello,

    Yes, you can set the allowAddNewTag property of a tagbox question to true
    See our source code - https://github.com/surveyjs/custom-widgets/blob/master/src/select2-tagbox.js#L43

    Thanks, Serge
    SurveyJS Team

      Comments (1)
      M M
      Muhamad Rachmat Gunawan 4 years ago

        I have tried this. However, the newly added tag was not included in the survey data. Any solution for this?

        Thanks in advance.