Questions with multiple answers

Discussions about CSEntry
Forum rules
New release: CSPro 8.0
Post Reply
claudia
Posts: 57
Joined: May 9th, 2017, 6:23 am

Questions with multiple answers

Post by claudia »

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.
wimneel
Posts: 86
Joined: May 6th, 2017, 5:31 am

Re: Questions with multiple answers

Post by wimneel »

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

Code: Select all

if pos($, "F") = 0 then
	skip to Q3;
endif;
will skip question Q2 for all answers, except thos that contain an "F".
Post Reply