Question T4192
Visible to All Users

How do I call the function of remove question button on the surveyj, what is the function call?

created 5 years ago (modified 5 years ago)

[Ticket cloned from T4037: How to set a value to a custom property?]

How do I  call the function of remove question  button on the surveyj,
what is the function call?

On 5/27/2020 11:16 AM, Serge T [surveyjs Support] wrote:

Answers approved by surveyjs Support

created 5 years ago

Hello,

You can do it in the https://surveyjs.io/Documentation/Survey-Creator?id=surveycreator#onElementAllowOperations event handler:

JavaScript
creator.onElementAllowOperations.add(function (sender, options) { options.allowDelete = false; });

Thanks, Serge
SurveyJS Team

    Show previous comments (16)

      Hello,

      I've created a separate ticket on your behalf (T4405: How to add json to the new page as a question dynamically?). It has been placed in our processing queue and will be answered shortly.

      Thanks, Serge
      SurveyJS Team

        I would like to create a json as question and append the json to the new page

        Example :  let json = {"type" : "test","name" : "question1"};

        var u = this.surveyCreator.survey.addNewPage("pages1");
                      u.addNewQuestion(json);
        my problem, I am facing, it's not appending to the new page
        On 6/15/2020 12:23 PM, Serge T [surveyjs Support] wrote:

          Hello,

          I've created a separate ticket on your behalf (T4562: I would like to create a json as question and append the json to the new page). It has been placed in our processing queue and will be answered shortly.

          Thanks, Serge
          SurveyJS Team

          created 5 years ago

          Hello,

          Could you specify what button are you asking about?

          If the question about the toolbox items in SurveyJS Creator, then here is the live sample on our site - https://surveyjs.io/Examples/Survey-Creator?id=toolboxcustomization&theme=bootstrap

          Thanks, Serge
          SurveyJS Team

            Show previous comments (1)

              Hello,

              We have a dozen of delete buttons in SurveyJS Creator and in different questions in SurveyJS Library.
              What product are you asking about?
              What exact place of SurveyJS Creator or what exact question type of SurveyJS Library are you talking about?

              Thanks, Serge
              SurveyJS Team

                Please find attachment,  I would like to know the function for the delete button

                On 5/27/2020 12:12 PM, Serge T [surveyjs Support] wrote:

                  Hello Team!

                  I would like to know the name of event if you want to delete a question or page (What is the event function name ?)

                  On 5/27/2020 11:50 AM, Serge T [surveyjs Support] wrote: