Question T13045
Visible to All Users

Remove the suggested choices

created 2 years ago (modified 2 years ago)

Hi Team,

I am using SurveyCreator in my react application.

I want to remove the choices suggestions (Except for none and other) for every question type.

Clipboard-File-1.png

Can you please help me with this?

Thanks
Raahish

Answers approved by surveyjs Support

created 2 years ago

Hello Raahish,
You can use the survey.onShowingChoiceItem function to hide this option.

JavaScript
creator.onSurveyInstanceCreated.add(function(sender, options) { if(options.reason == "designer") { // A survey instance for the Creator's design surface options.survey.onShowingChoiceItem.add(function (sender, options){ if(options.item.id === 'newitem') { options.visible = false; } }); } });

Example
Let us know if you have further questions.

    Show previous comments (2)

      yes

        Thank you for the confirmation. I will consider a possible option and get back to you shortly.

        Thanks

          Hello,

          I created a separate ticket on your behalf: T13316: Choices - Display the 'Add Choice' text instead of 'Item 4'. We placed it in our processing queue and will process it shortly.