Question T5509
Visible to All Users

Error on using 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 Team

This is the error, I am getting if I stetted allowtag property to true

Error: The property 'allowAddNewTag ' in class 'tagbox' is unknown. The list of available properties are: name, visible, useDisplayValuesInTitle, visibleIf, width, startWithNewLine, indent, page, title, description, descriptionLocation, valueName, enableIf, defaultValue, correctAnswer, isRequired, requiredIf, requiredErrorText, readOnly, validators, titleLocation, Ranking, LineBreak, tag, hasComment, commentText, hasOther, otherPlaceHolder, choices, choicesOrder, choicesByUrl, hideIfChoicesEmpty, choicesVisibleIf, choicesEnableIf, otherText, otherErrorText, storeOthersAsComment, colCount, hasSelectAll, hasNone, noneText, selectAllText, checkboxClass, QuestionTypes, select2Config, allowAddNewTag.

On 10/20/2020 4:18 PM, Serge T [surveyjs Support] wrote:

Answers approved by surveyjs Support

created 4 years ago

Hello,
Here is the working example.
What version do you use?

Thank you,
Andrew
SurveyJS Team

    Show previous comments (30)

      Hello,

      See the example I've provided earlier: https://codesandbox.io/s/upbeat-neumann-dywz1?file=/SurveyComponent.vue

      JavaScript
      const json = { clearInvisibleValues: "none", elements: [ { type: "tagbox", isRequired: true, allowAddNewTag: true, // "choicesByUrl": { // "url": "https://restcountries.eu/rest/v2/all" // }, choices: ["UK", "Albania", "Australia"], name: "countries", title: "Please select all countries you have been for the last 3 years.", }, ], };

      Thanks, Serge
      SurveyJS Team

        Hello Team

        Normal: choices":["Item 1","Item 2","Item 3"]
        Expected : choices":["Item 1","Item 2","Item 3","newTag"]

        The new tag reflect only if I submitted an answer.

        On 10/27/2020 4:58 PM, Serge T [surveyjs Support] wrote:

          Hello,

          I've created a separate ticket on your behalf (T5548: tagbox: the allowAddNewTag: true setting: new tag included in the answer only if other item is submitted). It has been placed in our processing queue and will be answered shortly.

          Thanks, Serge
          SurveyJS Team