Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
en:create:functions:getitemtext [24.01.2015 15:43] – [Example 1] alexander.ritteren:create:functions:getitemtext [24.01.2015 15:44] – [Example 1] alexander.ritter
Line 23: Line 23:
 <code php> <code php>
 $selection = value('AB01');  // respondent's selection (answer code = item) $selection = value('AB01');  // respondent's selection (answer code = item)
-$titel = getItemtext('AB01', $auswahl);+$title = getItemtext('AB01', $selection);
 replace('%title%', $title);  // set up placeholder replace('%title%', $title);  // set up placeholder
 question('AB02');  // ask question AB02 question('AB02');  // ask question AB02
Line 32: Line 32:
 <code php> <code php>
 $title = value('AB01', 'free');  // Respondent's selection as text $title = value('AB01', 'free');  // Respondent's selection as text
-replace('%title%', $titel);  // Set up placeholder+replace('%title%', $title);  // Set up placeholder
 question('AB02');  // Ask question AB02 question('AB02');  // Ask question AB02
 </code> </code>
en/create/functions/getitemtext.txt · Last modified: 26.08.2020 22:14 by sophia.schauer
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki