This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
en:create:dynamic [04.01.2015 17:24] – [JavaScript Code] alexander.ritter | en:create:dynamic [26.11.2020 21:08] – [The Basics] sophia.schauer | ||
---|---|---|---|
Line 12: | Line 12: | ||
* The simplest way to generate an element' | * The simplest way to generate an element' | ||
* SoSci assigns an HTML ID to each question consisting of the question ID, an underscore, ('' | * SoSci assigns an HTML ID to each question consisting of the question ID, an underscore, ('' | ||
- | - In SoSci Survey, any content can be incorporated into a questionnaire page. Therefore, this includes JavaScript code. The easiest way of doing this is to save the code as a text element in **Text Elements and Labels** and dragging and dropping this text element into the page in **Compose Questionnaire** and __into__ the respective question(s). | + | - In SoSci Survey, any content can be incorporated into a questionnaire page. Therefore, this includes JavaScript code. The easiest way of doing this is to save the code as a text element in **Text Elements and Labels**(for the //display// you have to select " |
Line 20: | Line 20: | ||
**Note:** Screenreaders, | **Note:** Screenreaders, | ||
+ | |||
+ | **Note:** Some question types use a different display for each screen by default (responsive layout). In rare cases, the display is not selected correctly when you display such a question via JavaScript. In this case, please set another option than " | ||
**Tip:** If the participant sees that one of the selection options involves extra work, then this could influence his responsiveness. Here, a classic [[filters|Filter]] asking the second question on the following page could make more sense. | **Tip:** If the participant sees that one of the selection options involves extra work, then this could influence his responsiveness. Here, a classic [[filters|Filter]] asking the second question on the following page could make more sense. |