Differences
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:functions:value [03.12.2014 08:15] – alexander.ritter | en:create:functions:value [21.12.2014 11:45] – [value()] alexander.ritter |
---|
The participant's responses (answer codes, selected options or text inputs) can be determined with this function. | The participant's responses (answer codes, selected options or text inputs) can be determined with this function. |
| |
**Note:** Only responses given by the participant on an __earlier__ page in the questionnaire and already transmitted to the server with "Next" can be called up. | **Note:** Only responses given by the participant on an __earlier__ page in the questionnaire, and already transmitted to the server with "Next" can be called up. |
| |
* //variable//\\ ID of the variable to be read. The correct ID can always be found in the **Variables Overview**. The variable ID is usually (not always) composed of section, question and, if applicable, item ID and must be given as a string (in quotation marks) (e.g. '''XY01_02'''). | * //variable//\\ ID of the variable to be read. The correct ID can always be found in the **Variables Overview**. The variable ID is usually (not always) composed of section, question and, if applicable, item ID and must be given as a string (in quotation marks) (e.g. '''XY01_02'''). |
**Tip:** Please also see [[:en:create:filters|Filters and Conditional Questions]]. | **Tip:** Please also see [[:en:create:filters|Filters and Conditional Questions]]. |
| |
The respondent answered question ''07'' in section ''AB'' (a dichotomous scale) on the previous page. The following code calls up question ''XY01'' only if the participant answered item ''03'' in the question ''AB07'' with "yes" (in this example with the value 2): | The respondent answered question ''07'' in section ''AB'' (a dichotomous scale) on the previous page. The following code only calls up question ''XY01'' if the participant answered "yes" (in this example with the value 2) to the item ''03'' in question ''AB07'': |
| |
<code php> | <code php> |