Have an idea?

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

constructed list from grid question

I have a survey in which I ask the following grid question:

Q5. Please describe your relationship with the following tests:
columns
i.    I have never heard of this test before
ii.    I am aware of this test, but have never taken it
iii.    I have taken this test, but not in the last 24 months
iv.    I have taken this test in the last 24 months
rows
i.    (TOEFL)
ii.    (IELTS)
iii.    (PTE)

then in Q6 i need to program this question:

Q6. In your best estimate, how many hours did you prepare in total for each specific test? [Open numeric text entry for each line]
a.    (DET):
b.    [Show if 5 = iii or iv] (TOEFL):
c.    [Show if 5 = iii or iv] (IELTS):
d.    [Show if 5 = iii or iv] (PTE):

Any idea how I can go about showing options b-d in Q6 based on answers from Q5?
asked Oct 23 by anonymous

1 Answer

0 votes
If you haven't already, you'll of course need to start by creating a predefined list that includes the four items that may potentially be shown in Q6.  Then you can create a constructed list based off that predefined list with this logic:

Add(list1, 1)
Begin Unverified Perl
if (GETVALUE('Q5_r1') >= 3) {
    ADD('list1', 2);
}
if (GETVALUE('Q5_r2') >= 3) {
    ADD('list1', 3);
}
if (GETVALUE('Q5_r3') >= 3) {
    ADD('list1', 4);
}
End Unverified
answered Oct 23 by Zachary Platinum Sawtooth Software, Inc. (156,375 points)
Thank you this was perfect. Can you help me with another question? Same survey....

Q7.    [Show if any test from 5 = iii or iv] Why did you choose to take multiple tests?
a.    Unsure which test I would perform highest on
b.    One test was not accepted by all the organizations/institutions to which I was applying
c.    Performed poorly on one test and wanted to try another
d.    Other (please specify):

how would i write the skip logic so that this question is only shown to respondents who selected more than 1 test in Q5:

Q5. Please describe your relationship with the following tests:
columns
i.    I have never heard of this test before
ii.    I am aware of this test, but have never taken it
iii.    I have taken this test, but not in the last 24 months
iv.    I have taken this test in the last 24 months
rows
i.    (TOEFL)
ii.    (IELTS)
iii.    (PTE)
You could call the ListLength function on our constructed list in your skip logic, skipping when the length is equal to one.
...