Copy link to clipboard
Copied
I have two checkboxes on a PDF (Check and ACH) and one signature block field.
I would like to have the following actions.
1. Checkbox("Check") == true [eg, check] - action set Checkbox("ACH") ==false [eg. unchecked] and Signature filed to - this.getField("Signature").clearItems();
2. Checkbox("ACH") == true [eg, check] - action set Checkbox("Check") ==false [eg. unchecked] and Signature filed to - this.getField("Signature").setItems(["No Signature Needed"]);
How do I code the two check boxes???
Copy link to clipboard
Copied
Never mind I figured it out
JavaScript for ACH checkbox
************************************
if(event.target.isBoxChecked(0,true))
{// Perform actions when checked
this.getField("Check").checkThisBox(0,true);
this.getField("Bishopric Signature").value = ""
}
else
{// Perform actions when unchecked
this.getField("Check").checkThisBox(0,false);
this.getField("Bishopric Signature").value = "Signature not Required"
}
JavaScript for Check checkbox
************************************
if(event.target.isBoxChecked(0,true))
{// Perform actions when checked
this.getField("ACH").checkThisBox(0,false);
this.getField("Bishopric Signature").value = ""
}
else
{// Perform actions when unchecked
this.getField("ACH").checkThisBox(0,true);
this.getField("Bishopric Signature").value = "Signature not Required"
}
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more