Hello,
In my questionnaire I have one question (say Q1) which allows for multiple answers to be checked simultaneously, including the option "other". The following question (say Q2) is "if other, specify which..." and allows for an alphanumeric answer.
The first question I designed with subitems and an alphanumeric parent item which has a value set goin from A -> F, so that the possible answers look somewhat like this "B" or "A, C, F" or "D, E" etc .
I would like to skip Q2 ("if other, please specify...") in all cases in which the answer "other" was not given in Q1, though I do not know what logic statement to use for this.
I would be very grateful if someone could kindly shed a light on this.
Questions with multiple answers
Re: Questions with multiple answers
I suppose Q1 is alphanumeric with length 6 (to allow for the six letters A to F) and that F is the option "Other". Now you can use the pos() function to find out if F is among the answers given to Q1. It returns 0 is F is not there. Then
will skip question Q2 for all answers, except thos that contain an "F".
Code: Select all
if pos($, "F") = 0 then
skip to Q3;
endif;