I am using simple Validation script in attached but it’s not working, can someone help to understand the problem so I can learn and improve next time. The problem is even we give correct response still it shows an error message.
PN: A5W3 & A5 both have same response type, and I am checking it should match else display an error message.
A5 is asked in Initial part of survey and A5W3 is asked at end of the survey.
if (SSI_GetValue("A5") != SSI_GetValue("A5W3"))
strErrorMessage = "Selection don't match Wave 1, please select correct response option.";
Please guide what is wrong here?