Have an idea?

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

List for grid question

I have a grid question with numeric values called 'A3'. I only want list members to appear in A4 (numeric and multiselect grid)  if the value entered in A3 is greater than 0. I've tried to build a constructed list with A3 as a parent list but haven't been successful
asked Mar 4 by kaitlan
Does A3 have multiple rows and one column?  One row and multiple columns?
A3 has multiple rows and 1 column

1 Answer

0 votes
Try this constructed list instructions:

Begin Unverified Perl
my $plist = 'A3RowList';
my $gridQ = 'A3';

for (my $i = 1; $i <= LISTLENGTH($plist); $i++) {
    if (GETVALUE($gridQ . '_r' . $i . '_c1') > 0) {
        ADD($plist, $i);
End Unverified

Line 2 and 3 must be updated with the name of the parent list and grid question, respectively.
answered Mar 5 by Zachary Platinum Sawtooth Software, Inc. (120,175 points)