How to make a field required base on any specific choices from dropdown list in PDF
I have a signature field, named "CredSig1", that I would like to make required based on dropdown selections at "cred" in which has a list of credentialing roles (i.e. Audiologist, Registered Nurse, Medical Assistant, etc.).
I have set a validation script below that works for "Audiologist", however, I cannot get others to work simultaneously:
var target = this.getField("CredSig1");
target.required = event.value == "Audiologist" ? true : false;
How can i script it to identify multiple values if one is selected to make a field required?
FYI, there is only one selection in this field. I would like Audiologist, Registered Nurse, Physicians, or Nurse Practitioner, if selected to make "CredSig1" required.
Thank you in advance.