Answered
if(event.value == "MARRIED")
{
this.getField("SPOUSE").required = true
this.getField("SPOUSE SSN").required = true;
}
else
{
this.getField("SPOUSE").required = false
this.getField("SPOUSE SSN").required = false;
}
This was my Acrobat 9 validation script. I need to switch this to LC Designer. I have the first if part right. I change it to:
if(this.rawValue == "Married")
I cannot seem to get the required part right. This script is suppose to take a Dropdown lists value(the Married) and make 2 other fields required if "Married" selected and not required if something else is selected.
to change the field to required, use the property ".mandatory", and also change the method referring the field from "this.getField" to "xfa.resolveNode".