0 votes
in SoSci Survey (English) by s093213 (140 points)

I would like to add a filter to open-ended questions, but am unable to find information on how to do so. Is such a characteristic possible? If so, please inform me as to how I can do this. Thank you!

by SoSci Survey (302k points)
Depends on what characteristics you would like to filter? Length? Patterns? Specific contents?

2 Answers

0 votes
by s093213 (140 points)

I would simply like any participants who answer specific open questions on my survey to be redirected (filtered) to subsequent questions. Is this possible?

0 votes
by SoSci Survey (302k points)

It is about comparing "no answer" to any answer? No problem:

if (trim(value('AB01_01')) == '') {
  // Gave no answer
} else {
  // Gave any answer
}

The trim() will take care that an accidential blank is not considered an answer. Please note that there are two (single) quotations marks ('') right to the ==, not one double (").

by s093213 (140 points)
Thank you. And where can I insert/ how can i apply this code?
by SoSci Survey (302k points)
Sorry, I'm not yet used to the option that someone using a filter may not have gone thought the way with PHP: https://www.soscisurvey.de/help/doku.php/en:create:filters

The filters in the user interface are still new, and when we're convinced everything works perfectly, other questions (like text inputs) will get them as well...

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

...