Solved
Skipping an entire row of a loop based on previous question
Hi Qualtrics community. I have an issue that I know how to resolve on other platforms but I'm running into a complicated way of addressing it here.
Long story short: Is there a way to skip the entire row of a loop if an earlier question does not meet certain criteria?
SCENARIO:
I have a loop of 50+ rows, each asking if you have been diagnosed with certain diseases/afflictions. Some of these are sex specific (i.e. don't ask about testicular cancer if the respondent wasn't born with testes). The sequence goes something like this:
Q1
Have you ever been diagnosed with ________?
Yes -> Go to Q2
No -> Go to next row
NULL -> Go to next row
Q2
At what age were you diagnosed with _______?
Q3
Do you still have _______?
SKINQ [show only to skin cancer, row 2]
"What kind were you diagnosed with?"
DIABETESQ [show only to diabetes, row 33]
"What kind were you diagnosed with?"
I configured skip logic on Q1 to be "If YES is NOT selected, skip to end of block"
I have the special questions at the end set to display if the current row is the appropriate disease/affliction
What I want to apply is some kind of pre-load action at Q1 to skip to the end of the block if 'current row = testicular cancer AND SEX<>01 (male)'. Is this possible????
Right now I'm applying display logic like this...DISPLAY IF:
Current Row <> Testicular Cancer
OR (new logic set)
Current Row = Testicular Cancer AND SEX = 01
But I have to apply that logic to all followups (Q2 and Q3 in above) as well. Is there some way to just skip the whole row?
Best answer by TomG
@Pete_L,
Before your loop, add a multiple choice question with a choice for each loop. Add the appropriate display logic to each choice (e.g., For Testicular Cancer choice, display if SEX = 01). Hide the question with JavaScript. Then, in your loop & merge setup, base the loop on the displayed choices in your hidden MC question.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
