Making a field required if a radio button or check box is selected when using a validation button
Hi
I've created a pdf form which has a validate button to check that certain required fields are filled in.
I want to make an additional field (lump sum) required as part of the validation, but only if option 3 has been selected as the radio button. For option 1 and 2 it is not required.
I also want to make an additional field (AVC amount) required if a check box (Option B) is ticked.
This is what I currently have which is working but what do I need to add for the above to work?
Thank you
if (
this.getField("Partnership status").value=="Off"||
this.getField("Question one").value=="Off"||
this.getField("Question two").value=="Off"||
this.getField("Question three").value=="Off"||
this.getField("Question four").value=="Off"||
this.getField("Question five").value=="Off"||
this.getField("Question six").value=="Off"||
this.getField("Declaration confirmation").value=="Off"||
this.getField("Date of event").value==""&& this.getField("Date of event").required==true||
{app.alert("Please complete all required fields which are highlighted in red.")}
