Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision |
en:create:php-filters [23.09.2019 08:54] – Titles admin | en:create:php-filters [05.08.2020 12:26] – [Preparations] jh29beja |
---|
====== Filters and Conditional Questions (PHP Filters) ====== | ====== Filter Questions (PHP Filters) ====== |
| |
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 ([[en:create:simple-filters|question filter]], simple variant) or in the **questionnaire** (//PHP filter//). | 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 ([[en:create:simple-filters|question filter]], simple variant) or in the **questionnaire** (//PHP filter//). |
-9 = no answer | -9 = no answer |
| |
So the ID of the variable is “PT01”, the answer code for “yes” is “1” and the code for “no” is “2”. Ideally you have configured the question to demand a complete answer (tab //Check for completion//). In this case the code -9 won't be applicable. | So the ID of the variable is “PT01”, the answer code for “yes” is “1” and the code for “no” is “2”. Ideally, you have configured the question to demand a complete answer (tab //Check for completion//). In this case, the code -9 won't be applicable. |
| |
**Attention:** Should there be more variables, e.g. ''PT01_01'' and ''PT01_02'', check the question type. It is important you chose the question type "Selection" or "Dropdown Selection" if you only allow the choice of one option, __not__ "Multiple Choice". | **Attention:** Should there be more variables, e.g. ''PT01_01'' and ''PT01_02'', check the question type. It is important you chose the question type "Selection" or "Dropdown Selection" if you only allow the choice of one option, __not__ "Multiple Choice". |