Have an idea?

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

limit radio button based on other answers in the grid

Please rate your opinion of turnaround time for the service:

    Too fast         Fast    Slow      Too slow
10 days               
20 days               
40 days               

We have a grid question like above. We need limit respondent to choose the rating (columns) on the following row given their previous answer in the grid.

For example, if one select  "Fast" for "10 day" then he can't select "Too fast'' for "20 day".

Is there anyway to alert the respondents if their answers did not make logical sense or  limit the radio button they can choose?

This is a tough one and any suggestion will be greatly appreciated.
thank you very much,
asked Oct 26, 2013 by anonymous

1 Answer

+3 votes
Apply Javascript verification like:

var int_r1 = SSI_GetValue("Qname_c1");
var int_r2 = SSI_GetValue("Qname_c2");


if(int_r1>int_r2)
{
            strErrorMessage = "You cannot select Too Fast for 20 days when Fast is selected for 10 days";
}
answered Oct 26, 2013 by Saurabh Aggarwal Gold (34,795 points)
Beginner's tip: you would put this under the Advanced | Custom JavaScript Verification area of the question.
...