Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Check Box actions

New Here ,
Nov 11, 2021 Nov 11, 2021

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

TOPICS
Create PDFs , How to
871
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 11, 2021 Nov 11, 2021
LATEST

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"

}

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines