This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
en:create:combine [23.11.2020 15:56] – sophia.schauer | en:create:combine [19.05.2021 20:54] – sophia.schauer | ||
---|---|---|---|
Line 2: | Line 2: | ||
You might want to ask different options about one item. For example the rating of a characteristic and its importance. This is how to implement this. | You might want to ask different options about one item. For example the rating of a characteristic and its importance. This is how to implement this. | ||
+ | |||
+ | **Note:** Please be sure to also read the notes on mobile devices below. | ||
**Example 1**\\ | **Example 1**\\ | ||
Line 201: | Line 203: | ||
</ | </ | ||
+ | ===== Combine Multiple Dropdown-Questions | ||
+ | |||
+ | Dropdown questions can be placed next to each other using tables for combined queries (see also chapter [[table-layout|Placing Elements side by side]]). | ||
+ | |||
+ | For a step-by-step description of the following example, see [[table-layout-dropdowns|Place Dropdowns Side by Side]]. | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | |||
+ | ===== Mobile devices and responsive display ===== | ||
+ | |||
+ | A relevant part of the respondants fill in the questionnaire not on an computer but on a mobile device. The most questions in SoSci Survey switch to a different display mode. Therefore in most cases it is enough to try the questionnaire in the end of the implementation on an mobile device. More in the chapter [[: | ||
+ | |||
+ | Combined questions, however, do not automatically adjust the layout to the size of the screen (responsive design) - and therefore may not be completed on mobile devices. Here it is suitable to offer an alternative presentation for mobile devices. | ||
+ | |||
+ | First, create a question of the type " | ||
+ | |||
+ | |||
+ | Now place this question on a page in the questionnaire that comes before the combined question. | ||
+ | In the following example it is assumed that the variable has the identifier " | ||
+ | |||
+ | Now, with a few lines of [[: | ||
+ | |||
+ | <code php> | ||
+ | if (value(' | ||
+ | // combined question | ||
+ | question(' | ||
+ | } else { | ||
+ | // single questions | ||
+ | question(' | ||
+ | question(' | ||
+ | } | ||
+ | </ | ||
+ | For an explanation of the code, please refer to the [[: |