Javascript Verification

Hi,

I'm trying to create some custom javascript verification for a question with a specify box (numeric) and a don't know option. The list people select from is built from a previous question so it also needs to confirm that the answer option has been pulled through.

I have set this up and it works fine when only verification for 1 row of the question is turned on i.e:

if(SSI_GetValue("shp8b_r5_c1") >= 1 && SSI_GetValue("shp8b_r5_c2") == 1)
{strErrorMessage="Please enter a value OR select 'Don't Know' for each of the drinks shown";}
if(SSI_GetValue("shp8b_r5_c1") == "" && SSI_GetValue("shp8b_r5_c2") == 0 && [%shp8_r5%] >=1)
{strErrorMessage="Please enter a value OR select 'Don't Know' for each of the drinks shown";}

However when I try and run it for rows 1,2,3,4,5,6&7 together it does not work. (the same code as above but for _r1, _r2 etc.

I'm not sure what I'm doing wrong as the script works just not when the whole thing is run.

Would be great if someone could tell me what I'm doing wrong!!

Cheers
James

Resolved
1 reply