Hi team ,
I am creating polls application using survey-creator library. As you know poll allow you to ask one multiple choice question . to do that is there any possibility restrict the question while designing the question.
Thanks.
Hi team ,
I am creating polls application using survey-creator library. As you know poll allow you to ask one multiple choice question . to do that is there any possibility restrict the question while designing the question.
Thanks.
Hello,
This can be done via the following code (e.g. for the text
question):
JavaScriptcreator.onQuestionAdded.add(function(sender, options) {
if(options.question.getType() === "text") {
creator.toolbox.removeItem("text");
}
});
Here is the working sample - https://plnkr.co/edit/ZjVHE1k4kFsLtDe7K9Fo?p=preview
Thanks, Serge
SurveyJS Team
Hello,
Could you please specify - what do you mean under the "restrict the question while designing the question"?
Thanks, Serge
SurveyJS Team
i need to allow my user to create only one question for a survey