Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision |
en:create:inputs-custom [06.01.2015 20:35] – [Example: Use of JavaScript] alexander.ritter | en:create:inputs-custom [06.01.2015 20:38] – [Example: Use of JavaScript] alexander.ritter |
---|
**Tip:** If you only require certain internal variables of the question, set this with the {{:button.settings.png?nolink|Settings}} symbol in //Show items//. Alternatively, insert the question type "internal variables" onto the page using the PHP function ''question()'' and specify the respective item IDs. | **Tip:** If you only require certain internal variables of the question, set this with the {{:button.settings.png?nolink|Settings}} symbol in //Show items//. Alternatively, insert the question type "internal variables" onto the page using the PHP function ''question()'' and specify the respective item IDs. |
| |
If you integrate the question into the questionnaire, there is no visual change. However, there will be a hidden input field (''%%type="hidden"%%'') stored for each internal variable. The content of these fields can be read and changed with JavaScript. | There is no visual change when you insert the question into the questionnaire. However, there will be a hidden input field (''%%type="hidden"%%'') stored for each internal variable. The content of these fields can be read and changed with JavaScript. |
| |
| |
<code php> | <code php> |
// Integrate variables 1 und 2 in question AB01 (type "internal variables") | // Use variables 1 und 2 from question AB01 (type "internal variables") |
question('AB01', '1,2'); | question('AB01', '1,2'); |
</code> | </code> |