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

0 votes

Hi!

I would like to create a filtering condition as follows.

Q1 with choice options A-B-C

next Q2 with same options A-B-C

after the Q2, I would like to create a filter which screens out participants whose answers for Q1 and Q2 are different.

What is the most straightforward way of accomplishing this?

Thanks a lot in advance for any help!

in SoSci Survey (English) by s103538 (135 points)

1 Answer

0 votes
 
Best answer

Here's the PHP code for the page after Q2.

if (value('Q101') != value('Q201')) {
  text('SC01');  // Display screenout text
  buttonHide();  // No more "next" button, game over
  pageStop();  // Ignore anything else on this page
}
by SoSci Survey (229k points)
selected by s103538
beautiful - thank you!
...