Have an idea?

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

Grid checkbox with other specify

I have used two grid questions, one set to use checkbox buttons and another set to use open-ends with that one column.  Then I use combine the two grid questions with the code. I want to create logic as in this link:


Can you help to fix?
asked Aug 3, 2021 by Saroeun Bronze (2,995 points)

1 Answer

+1 vote
Best answer
To make this work for other grid input types, you just need to update line 4 of my original custom JavaScript verification to reflect the chosen input type.

Whether the fourth radio button is selected:

SSI_GetValue('[% QuestionName() %]_r' + rows[r]) == 4

Whether the fourth checkbox is checked or whether the fourth numeric / open-end is answered:

SSI_GetValue('[% QuestionName() %]_r' + rows[r] + '_c4')
answered Aug 3, 2021 by Zachary Platinum Sawtooth Software, Inc. (207,300 points)
selected Aug 3, 2021 by Saroeun
Thanks, all are working now.