How to fix my validation script
I have the following validation script that is giving me a syntax error in line 2.
if (event.value == "Nurse" || event.value == "Psychiatrist") {
this.getField("ClassBE").display = display.visible;
}
else {
this.getField("ClassAE").display = display.visible;
}
My desired outcome is to have a specific field display (ClassBE or Class AE) depending on what is entered in this field. So if Nurse or Psychiatrist is selected, then the ClassBE field displays. If anything other than those two are chosen, ClassAE should be displayed.
Can someone please help me determine why I am getting this syntax error?
Thank you!
