I thought I had this issue solved, but apparently not. I have two questions on one page, Q1 (b7sym01t) and Q2 (b7sm01b). Q1 is required... if Q1 = 0, then Q2 should stay hidden and not require an answer. If Q1 = 1, then Q2 should show itself and require an answer (0 or 1). The hiding/showing code is working fine. I had code working well for the custom verification but it was reading the 0 as unanswered.
This is my current code for the custom verification for Q2:
if (SSI_GetValue("b7sym01t") == 1 && SSI_GetValue("[%QuestionName()%]") === null)
strErrorMessage = "Must answer treatment question.";
I tried using "" instead of null, but it keeps allowing unanswered questions to pass. I also tried to use "Not Answered", which didn't work correctly either!! I also tried using the length as zero (if (document.mainform["b7sm01b"].value).length == 0))... PLEASE HELP!!!