Survey-library: display survey in 2 columns

Created on 26 Dec 2018  路  2Comments  路  Source: surveyjs/survey-library

Are you requesting a feature, reporting a bug or asking a question?

requesting a feature / asking a question

What is the current behavior?

the survey is displaying in full width, and depending on the screen it makes input text of more than 1000px

What is the expected behavior?

just wanted to know if there is a template or something that can display two columns of questions in the same page like if I have :

question 1 :
input text 1

question 2 :
input text 2

question 3 :
input text 3

question 4 :
input text 4

I wanted something like :

question 1 : | question 3 :
input text 1 | input text 3
question 2 : | question 4 :
input text 2 | input text 4

enhancement

Most helpful comment

Thank you for the answer, and for the great work
and best wishes for the new year

All 2 comments

Thank you for the suggestion.

Now you can create two panels side-by-side as shown in the JSON below:

{
 locale: "de",
 pages: [
  {
   name: "page1",
   elements: [
    {
     type: "panel",
     name: "panel2",
     elements: [
      {
       type: "radiogroup",
       name: "question5",
       choices: [
        "item1",
        "item2",
        "item3"
       ]
      },
      {
       type: "dropdown",
       name: "question4",
       choices: [
        "item1",
        "item2",
        "item3"
       ]
      }
     ]
    },
    {
     type: "panel",
     name: "panel1",
     elements: [
      {
       type: "comment",
       name: "question3"
      },
      {
       type: "rating",
       name: "question2"
      }
     ],
     startWithNewLine: false
    }
   ]
  }
 ]
}

Thank you for the answer, and for the great work
and best wishes for the new year

Was this page helpful?
0 / 5 - 0 ratings