If the participant's answer to a question is to have an effect on the further course of the interview, it is a filter question. You can define filters either directly in the question (question filter, simple variant) or under questionnaire ([:de:create:php-filters|PHP-Filter]]).
To define a question filter, select the filter question in the Question Catalog and then click on the Filter Question tab under More Settings. A filter consists of two parts:
Important: The function is currently only available for questions of type “Selection”, “Dropdown selection”, “Horizontal selection” and “Multiple selection”. It will be successively extended to other question types.
Important: For the filter to work, the filter question and the element (another question or text) affected by the answer must be on different pages in the questionnaire. Future versions of the program will also support questions on the same page – until this feature extension becomes available, it is possible to use the Immediately Show Questions when a Certain Option is Selected tutorial.
You can define one or more filters for a question. Once a filter has been defined and the question has been saved, it is marked with a symbol ( in the question catalog).
Note: A filter is already saved with a click on the check mark, it is not necessary to save the question as well. However, the display in the navigation is not updated until the question is saved or another question is called.
A filter condition can either be true or false.
With a question filter, the filter condition refers only to the answer in the filter question. With PHP-Filters you can also link several variables in the filter condition (Linking Multiple Conditions).
Which variants of the filter condition are available depends on the type of question.
For the filter effects – that is, what happens when the filter condition occurs – the following options are uniformly available.
Another question or text defined in the question catalog should be displayed or hidden depending on the filter condition.
Note: Text modules that were created under Text modules and labels cannot be shown or hidden with this filter condition.
In this filter navigation, use the dropdown to select a question or text from the question catalog and specify whether this is to be displayed or hidden if the filter condition applies.
Important: The element to be shown or hidden must already have been placed on a page in the questionnaire under Questionnaire. Otherwise SoSci Survey does not know where to display the element. Furthermore, it must not be placed on the same questionnaire page as the filter question (work in progress).
If the answer “No, I don't have a smartphone” is selected for question FF01, the question FF02 is hidden on the following page. Otherwise, it will be regularly displayed where it was placed at Questionnaire.
Alternatively, the filter could have been defined as follows:
The filter guidance with positive (top) and negative (bottom) wording has the same function, provided that the filter question is a mandatory question. Otherwise, the case “-9 no answer” must be dealt with explicitly.
If several filters compete for the display of the question FF02, hiding the question (whether by a positive or negative filter) has priority over displaying it. So if one filter wants to show the question and another filter wants to hide it, the question is not shown (hidden) in the interview.
Not only a complete question can be hidden, but also individual items.
This filter effect leads to complete pages in the questionnaire being skipped.
Important: First give the pages a page id by which you refer to this/these page(s). If you enter a page number, a page identifier is automatically created – however, this is usually not as meaningful as a manually assigned page identifier.
On page 2 of the questionnaire, the participant is asked in a multiple selection (FF03) which online services he uses. Only if “Facebook” is selected pages 5 to 7 in the questionnaire shall be processed, which query Facebook usage more precisely.
Note: You can specify one or more pages to display or hide. Multiple pages can be specified either separated by a comma (“pg01, pg02, pg03, pg05”) and/or by a hyphen as page ranges from - to (“pg01-pg03, pg05”).
In this example, a negative wording would also be possible as an alternative to the positive wording of the filter:
It goes without saying that only those pages that are further back in the questionnaire than the page with the filter question can be hidden.
After clicking on “Next”, this filter effect jumps directly to the specified page in the questionnaire. A page id is specified here again.
Important: After the page has been answered, the questionnaire continues from there – the interview does not jump back to the page with the filter question.
Important: Jumping within the questionnaire should be used very cautiously. There are only a few cases in which this filtering actually makes sense. Often the filter effect show/hide page(s) in the questionnaire is more intuitive.
The interview is to be ended and a screenout text (farewell) is to be displayed.
The farewell is created beforehand as text in the question catalog.
To test the correct function of a filter, use the preview function under Questionnaire. Usually it saves a lot of time to start directly on the page with the filter question () and use the debug mode for the test.
A detailed description can be found in the Solving Questionnaire Problems manual.
If you do not find the error, please provide the following information in an online support question:
Question filters become active only if the filter question was displayed in the questionnaire. For example:
Problems now arise if the participant indicates that he does not have a smartphone. Then question FF02 (brand) is not displayed at all. Their filters are not active and both the “samsung” and “htc” pages are displayed later in the questionnaire.
The solution is to add another filter to question FF01 (possession of a smartphone): If “No” is selected, then the pages “samsung, htc” should be hidden.