I have a ranking question containing 7 options and 1 None option. I need respondents to either rank or select none but not both.
What is the most effective way to achieve this?
I have added a select type question and have added below code in the advanced tab.
if ((SSI_GetValue("Q93_1") == 0) && (SSI_GetValue("Q93_2") == 0) && (SSI_GetValue("Q93_3") == 0) && (SSI_GetValue("Q93_4") == 0) && (SSI_GetValue("Q93_5") == 0) && (SSI_GetValue("Q93_6") == 0) && (SSI_GetValue("Q93_7") == 0) && (SSI_GetValue ("S12BNone_1") == 0))
{
var strErrorMessage = "You must either rank OR select Don't Know";
}
if (((SSI_GetValue("Q93_1") <> 0) || (SSI_GetValue("Q93_2") <> 0) || (SSI_GetValue("Q93_3") <> 0) || (SSI_GetValue("Q93_4") <> 0) || (SSI_GetValue("Q93_5") <> 0) || (SSI_GetValue("Q93_6") <> 0) || (SSI_GetValue("Q93_7") <> 0)) && (SSI_GetValue ("S12BNone_1") == 1)))
{
var strErrorMessage = "You must enter valid ranks OR select Don't Know, NOT BOTH";
}