In my application I have a radio button with 3 options "New", "Yes", "No". I have a multi line field called "If no, Why"
I want the person editing to be forced to enter notes in the multi line box if they select "No" on the radio button.
HERE IS MY SCRIPT
if ((input.Hired == "No") && (input.If_No_Why == null))
{
alert "Please explain why this person was not hired";
cancel submit;
}
If I take out the && (input.If_No_Why == null)) I get the alert and cancel submit, when I add the &&... data is added successfully.
What am I doing wrong?
I used this page as reference: