0 votes
in SoSci Survey (English) by s328748 (110 points)

I have one question that is randomised- it was divided into 3 test groups. I want in one of the group one sentence to appear. How do I do that?
Best of all!

1 Answer

0 votes
by SoSci Survey (347k points)

What about a PHP filter to show the line of text.

if (value('RG01') == 3) {
  // either
  text('TX01');
  // or
  html('<p>This line is shown only to group 3.</p>');
}
by s328748 (110 points)
Where should I put the code for it to work?( I saw that in compose questionaire but when I put the code in it showes in all groups) And instead of the value p should I put the name of the description of the text question I want to add?
by SoSci Survey (347k points)
Always put PHP code where you want to have the output.

As you do not describe your questionnaire's structure in your question, I cannot be more concrete about pages.

> And instead of the value p should I put the name of the description of the text question I want to add?

The html() function - as you can read in the manual - will simply show the text in brackets. The <p> just makes sure to have that in a sparate line and have some spacing below.

The text() function, instead, will display a text that was previously create in the list of questions.

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

...