Skip to main content
Participant
November 11, 2021
Question

Check Box actions

  • November 11, 2021
  • 1 reply
  • 830 views

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???

This topic has been closed for replies.

1 reply

ChrisPreAuthor
Participant
November 12, 2021

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"

}