Hi everyone,
hope all is well.
i have one select multi options question (A8), and one more select single option question (D2).
my requirement is if responded select in
A8_8==1 or select in D2==1
A8_9==1 or select in D2==2
A8_11==1 or select in D2==3
A8_10==1 or select in D2==4
than show error massage.
I'm using these codes in custom java script
var ab = "[% Value(A8_8) %]";
var ad = "[% Value(A8_9) %]";
var ae = "[% Value(A8_11) %]";
var af = "[% Value(A8_10) %]";
var ac = SSI_GetValue('D2');
if ((ab == 1) && (ac == 1))
{strErrorMessage = "IF Zeera Plus Biscuit select in A8 then not select in D2";}
else if
((ad == 1) && (ac == 2))
{strErrorMessage = "IF Innovative Zeera Biscuit select in A8 then not select in D2";}
else if
((ae == 1) && (ac == 3))
{strErrorMessage = "IF Zeera Kalonji Biscuit select in A8 then not select in D2";}
else if
((af == 1) && (ac == 4))
{strErrorMessage = "IF Bisconni Zeera Biscuit select in A8 then not select in D2";}
this is working only for the first option A8_8==1 or D2==1 than show an error.
any suggestion will be appreciated.