Have an idea?

Visit Sawtooth Software Feedback to share your ideas on how we can improve our products.

Skip logic in grid question

Hello. I have a grid question with 10 rows and 5 columns (range from "do not agree to totally agree"). We need only those respondents who select some of the options in columns 1 and 2 and some options in columns 4 and 5. To go further, they need to check at least 5 options. Would you please kindly advise how to program the skip logic in such case?

Thank you!
asked Mar 23 by Dino

1 Answer

0 votes
Depending on your conditions and which rows apply to the skips you refer to, there are a number of solutions here.

Here's an idea ...

Create a constructed list. The parent list will be the same list you use as your row list in the grid question.

I have assumed your grid question is Q1 and your row list is called OptionsList. So make the necessary edits where necessary.

Insert this script in to a constructed list (call it OptionsConList) ...
Begin Unverified Perl 
  
 if (VALUE("Q1_r1")==1 || VALUE("Q1_r1")==2)
  {  
   ADD("OptionsList",1);
  }

 if (VALUE("Q1_r2")==4 || VALUE("Q1_r2")==5)
  {  
   ADD("OptionsList",2);
  }

End Unverified

This constructed list will save all row options from your grid question (I called it Q1) that meet the conditions you apply.

My example says if Q1 row 1=1 or 2, add Option 1 and if Q1 row 2=4 or 5, add Option 2.

You can add additional if statements for each relevant row and apply the necessary conditions.

Once the constructed list is finalised, you can use this condition to skip ...

ListLength(OptionsConList)>5

This will skip a question if the number of options saved within the constructed list is greater than 5.

If you send through the following ...

*Grid question name
*What rows have what conditions

I can finalise the constructed list. You might want to have a go at it yourself using my example above.

Hope that gets you up and running.
answered Mar 23 by Paul Moon Platinum (89,880 points)
...