Hi there, bit of a weird one, I have a password field called "Language" and am trying to run a custom error handler based on the language set in the survey. I've done this:
var lang;
lang =SSI_GetValue("Language");
if(S1I1ct>0 && NoneofThese >0 && lang === "EN")
{
strErrorMessage = "None of the Above and another option cannot both be selected";
}
When I push this to a console.log I get a 1 for S1I1ct, 1 for NoneofThese but lang is blank.
The password field is working as the question is displaying in the correct language, just for some reason I can't get the language to display. I know this is something stupid, any ideas?
Javascript - can't validate a password field
Resolved
3 replies