Have an idea?

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

Open ended grid and Select question on same page check both or none selected


I have to set two questions on one page:
- Q1- the first one should be open ended matrix with 5 rows and one column(allowed for any symbols type letters and numbers);
- Q1a- the second one should be only one box from selected question type - None option.

I need to set validation and show err message if someone do something from the following:
- if the None box is not selected and dosn't have input of any of the open ended boxes
- if the None box is selected and we have input of any of the open ended boxes

Will appreciate any help,
asked Nov 27, 2015 by DimitarB (240 points)

1 Answer

+2 votes
Please place this code in advanced section of  Q1:

if(SSI_GetValue("[% QuestionName() %]_r1_c1")=="" && SSI_GetValue("[% QuestionName() %]_r2_c1")=="" && SSI_GetValue("S[% QuestionName() %]_r3_c1")=="" && SSI_GetValue("[% QuestionName() %]_r4_c1")=="" && SSI_GetValue("[% QuestionName() %]_r5_c1")==""  && SSI_GetValue("Q1a_1")==0)
    strErrorMessage = "You forgot to answer this question.";
answered Feb 2, 2016 by KarthikMahankali Bronze (1,750 points)