Highlighted

Mandary field for check boxes

New Here ,
Aug 31, 2020

Copy link to clipboard

Copied

Hi! I am creating a form with several mandatory check boxes and after ticking all these checked box (say, 6 boxes), a "confirmation check box" at the bottom can be clicked. 

If the anyone of the 6 boxes not clicked, the "confirmation check box" cannot be clicked.

 

Can anyone help me on that?  Thanks!

 

 

Topics

PDF forms

Views

22

Likes

Translate

Translate

Report

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

Mandary field for check boxes

New Here ,
Aug 31, 2020

Copy link to clipboard

Copied

Hi! I am creating a form with several mandatory check boxes and after ticking all these checked box (say, 6 boxes), a "confirmation check box" at the bottom can be clicked. 

If the anyone of the 6 boxes not clicked, the "confirmation check box" cannot be clicked.

 

Can anyone help me on that?  Thanks!

 

 

Topics

PDF forms

Views

23

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Participant ,
Sep 01, 2020

Copy link to clipboard

Copied

Hi, you can do it like this:

1. Create TextField (make it hidden if you don't want to show it on your page)

2. Put this code in TextField "Custom Calculation Script"

 

if (this.getField("CheckBox1").value != "Off" &&
this.getField("CheckBox2").value != "Off" &&
this.getField("CheckBox3").value != "Off" &&
this.getField("CheckBox4").value != "Off" &&
this.getField("CheckBox5").value != "Off" &&
this.getField("CheckBox6").value != "Off") {
this.getField("ConfirmationCheckBox").readonly = false ;
} else {
this.getField("ConfirmationCheckBox").readonly = true ;
}

Also rename field names if needed.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
try67 LATEST
Most Valuable Participant ,
Sep 01, 2020

Copy link to clipboard

Copied

I would also add a command to reset the confirmation check-box field when it is set as read-only, in case the user ticks it and then goes back and un-ticks one of the other boxes.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Resources
One Stop Solution for Acrobat
Edit a PDF