I'm very new to Java Scripting. I have to hand it to those of you who do this all the time. I'm going crazy just trying to do some simple things.
I have two check boxes on a PDF document that are functioning as a radio group. This part is working correctly.
Now I need to make it so that at least one of the boxes must be checked in order for the user to be able to submit the form.
Here is the code I have so far:
function IMMValidateForm() { var sTemp1; var sTemp2; var fieldRequired = Array("IGA302_1"); var fieldRequired = Array("IGA302_3"); var fieldDescription = Array("Check Work Status"); sTemp1= IMMSetAllMandatoryFields(fieldRequired, fieldDescription); if (sTemp1== true){ return true; } else if (sTemp2== true){ return true; } else { return false; } }