|Compatibility:||IdSurvey 5||IdSurvey 6|
Within IdSurvey it is possible to add sections to a survey that act as a container for a group of pages. That way, you can better organize the questionnaire flow and use some advanced sorting functions.
To add sections to a survey, you can proceed in two easy ways:
1 – from the graphic interface: click on the button “Edit Pages” in the Questions Management window of your survey, and drag one page over another to create a section that contains them. Once the section is created, you can add other pages by dragging and dropping them inside the section, or extract some pages by dragging them out of the grey box of the section. Once you’ve finished editing, click on the “Edit Pages” button again to go back to the normal view, and continue creating the questionnaire.
2 – from IdCode: to generate a section using the IdCode interface, you just need to add the commands “section NAME” and “/endsection” (without quotes, and changing NAME with a name of your choice for the section), respectively before and after the pages you wish to add to the section, just like in the example below:
Once your section is created, it can be modified by clicking on the “Edit Pages” button and the cogwheel button that will appear in the grey box of the section itself. Here you can set up filters that works on the entire section, and that have a higher priority over those in the single pages inside it: for example, if the condition of a section filter is not satisfied, every page inside the section will be skipped, regardless of the display conditions set in each page.
It’s also possible to set the pages inside the section to display in a random order. The page randomization works the same as the questions randomization and answers randomization that you normally use in a page, meaning you can randomly rotate all the pages inside a section and/or create randomly rotating group of pages. You can find more on the random functions in the dedicated article inside this knowledgebase.