Question T4424
Visible to All Users

How to delete a first page dynamically with script in SurveyJS Creator?

created 5 years ago (modified 5 years ago)

[Ticket cloned from T4405: How to add json to the new page as a question dynamically?]

how to delete a first page dynamically with script

On 6/15/2020 2:23 PM, Andrew Telnov [surveyjs Support] wrote:

Answers approved by surveyjs Support

created 5 years ago

Hello,
Please use the following code to delete the current page:

JavaScript
surveyCreator.deletePage();

If you want to delete the first page, then use the following code:

JavaScript
surveyCreator.deleteElement(surveyCreator.survey.pages[0]);

Thank you,
Andrew
SurveyJS Team

    Show previous comments (1)

      You can create as many questions on the page as you want. We do not put any limitation.

      PS: Please create a new ticket/e-mail for a new question.

      Thank you,
      Andrew
      SurveyJS Team

        How to do I create more than five on the same the page with script,

        On 6/18/2020 4:54 PM, Andrew Telnov [surveyjs Support] wrote:

          Hello,

          I've created a separate ticket on your behalf (T4434: How to do I create more than five on the same the page with script?). It has been placed in our processing queue and will be answered shortly.

          Thanks, Serge
          SurveyJS Team