Question T4405
Visible to All Users

How to add json to the new page as a question dynamically?

created 5 years ago (modified 5 years ago)

[Ticket cloned from T4192: How do I call the function of remove question button on the surveyj, what is the function call?]

how to add json to the new page as a question dynamically?

On 6/15/2020 8:51 AM, Andrew Telnov [surveyjs Support] wrote:

Show previous comments (4)

    this is my json I wanna to add it into surveyjs but it's  not working

    {
     "pages": [
      {
       "name": "page1"
      },
      {
       "name":""page1",'elements':[{"type":"parentdetails","name":"question1","Ranking":1,"0":"QuestionID = 1","1":"QuestionNumber = 1",'QuestionID':1}]"
      },
      {
       "name":""page2",'elements':[{"type":"siblingdetails","name":"question1","Ranking":2,"0":"QuestionID = 2","1":"QuestionNumber = 1",'QuestionID':2}]"
      },
      {
       "name":""page3",'elements':[{"type":"fathermotherwork","name":"question1","Ranking":3,"0":"QuestionID = 3","1":"QuestionNumber = 1",'QuestionID':3}]"
      }
     ]
    }

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

      how to delete a first page dynamically with script

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

        Hello,

        I've created a separate ticket on your behalf (T4424: How to delete a first page dynamically with script in SurveyJS Creator?). It has been placed in our processing queue and will be answered shortly.

        Answers approved by surveyjs Support

        created 5 years ago

        Hello,

        Here is the updated plunker - https://plnkr.co/edit/8Im7xKLarnnQgwlU

        Thanks, Serge
        SurveyJS Team

          Show previous comments (2)

            Hello,

            It would be of great help if you provide us with a live sample illustrating the issue.
            You can use the above plunker as a starting point.

            You are asking questions about the SurveyJS Creator which is under the commercial license. Could you write us from the e-mail linked to your license in order to recognize you as a valid customer?

            Thanks, Serge
            SurveyJS Team

              how to display other property on top ?

              On 6/15/2020 8:42 PM, Serge T [surveyjs Support] wrote:

                Hello,

                I've created a separate ticket on your behalf (T4457: How to display other property on top?). It has been placed in our processing queue and will be answered shortly.

                Thanks, Serge
                SurveyJS Team