Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision |
en:create:multilevel [11.01.2019 19:37] – sophie_irina | en:create:multilevel [11.01.2019 23:37] – admin |
---|
</code> | </code> |
| |
No further adaptations are needed in the main questionnaire. In the sub-questionnaire, the element should be stored by ''[[:en:create:function:put]]'' in a [[:en:create:questions:internal|internal variable]]. Moreover, it could be useful to define a placeholder for the naming by ''[[:en:create:function:replace]]'. | No further adaptations are needed in the main questionnaire. In the sub-questionnaire, the element should be stored by ''[[:en:create:function:put]]'' in a [[:en:create:questions:internal|internal variable]]. Moreover, it could be useful to define a placeholder for the naming by ''[[:en:create:function:replace]]''. |
| |
<code php> | <code php> |
==== Example 3 ==== | ==== Example 3 ==== |
| |
The instruction to [[:en:create:functions:randomuse#anwendungsbeispiel|randomUse()]] shows the complete PHP-Code for the case where participant has to rate 20 items randomly selected from a pool, but can also skip them. | The instruction on [[:en:create:functions:randomuse#anwendungsbeispiel|randomUse()]] shows the complete PHP-Code for the case where participant has to rate 20 items randomly selected from a pool, but can also skip them. |
| |
| |
===== Notes ===== | ===== Notes ===== |
| |
* It is recommended to switch off the numbering of the questions in the subordinate questionnaire (**Compile questionnaire** -> Tab //Settings//). At present, the numbering of the questions in each subordinate questionnaire is still independent of the numbering in the main questionnaire. | * It is recommended to switch off the numbering of the questions in the subordinate questionnaire (**Compose questionnaire** -> Tab //Settings//). At present, the numbering of the questions in each subordinate questionnaire is still independent of the numbering in the main questionnaire. |
* Placeholders are only valid within one data set -- therefore, placeholders from the main questionnaire cannot be used in the sub-questionnaire. If a placeholder is also required in the sub-questionnaire, the corresponding value must be transferred to the sub-questionnaire using ''multiLevelDown()'' and a placeholder must be defined there. | * Placeholders are only valid within one data set -- therefore, placeholders from the main questionnaire cannot be used in the sub-questionnaire. If a placeholder is also required in the sub-questionnaire, the corresponding value must be transferred to the sub-questionnaire using ''multiLevelDown()'' and a placeholder must be defined there. |
| |
**Tip:** Set the access mode for the sub-questionnaire under **Compile questionnaire** -> tab //Settings// "Internal/locked", so that the questionnaire can indeed only be retrieved as a sub-questionnaire and not directly. | **Tip:** Set the access mode for the sub-questionnaire under **Compose questionnaire** -> tab //Settings// "Internal/locked", so that the questionnaire can indeed only be retrieved as a sub-questionnaire and not directly. |