I am trying to make this where if this checkbox is checked then it checks to see if SSN has a correct number in it or it returns an error.
This is what i have in there now.
if (xfa.resolveNode("this").rawValue == "1")
{
SSN.mandatory = "error";
app.alert("Please fill in the Dependent SSN portion of this form.");
}
else
{
SSN.mandatory = "disabled";
}
This works all too well. if they do have a number in the field, it still gives the error. I need that not to happen.
Also, I need another checkbox to do the same thing but also add in if "age" is equal to or greater than 1 = true, if not then return an error.
any and all help would be appreciated.