0 votes
in SoSci Survey (English) by s079578 (185 points)
edited by SoSci Survey

Hello,
I have an open text field question with just one input option and no label. The field is called "OD20_01".
On the next site I want the input of "OD20_01" to be shown as simple text. The new "question" has the ID "OD32" and is single choise but could be whatever as long as it would show up and work. The placeholder is called

This is my php code:

$items = value('OD20_01');
debug($items);
replace('%text%','OD32_01', response);
question('OD32',$items); 

Anybody got an idea?

1 Answer

0 votes
by SoSci Survey (324k points)

Please change

replace('%text%','OD32_01', response);

to

replace('%text%','OD20_01', response);

because it is the answer to OD20_01 that you want to use in the placeholder. As an option, you can also use the $items variable:

$items = value('OD20_01');
debug($items);
replace('%text%', $items);

Willkommen im Online-Support von SoSci Survey.

Hier bekommen Sie schnelle und fundierte Antworten von anderen Projektleitern und direkt von SoSci Survey.

→ Eine Frage stellen


Welcome to the SoSci Survey online support.

Simply ask a question to quickly get answers from other professionals, and directly from SoSci Survey.

→ Ask a Question

...