Skip to main content
Henry.Ong
Inspiring
May 10, 2024
Answered

How to add values assigned to checkboxes?

  • May 10, 2024
  • 2 replies
  • 1536 views

Good day!

I have a PDF form with checkboxes with corresponding values.

What I want is when a checkbox is selected, it would get the value and add it along with the value with the other selected checkboxes.

Example:

[  ]  Option 1  (value is 100)

[  ]  Option 2  (value is 200)

[  ]  Option 3  (value is 300)

Thus, if I select only Option 1, the result would be 100

If I select Option 1 and Option 3, the result would be 400

I hope you can help me with my problem.

This topic has been closed for replies.
Correct answer try67

Set those numbers as the Export Values of the check-boxes and then use the built-in Sum option under the Calculate tab of the total text field and select all the check-boxes.

2 replies

Amal.
Legend
May 10, 2024

Hi there

Hope you are doing well and thanks for reaching out.

The workflow you are trying to achieve is might be possible using JavaScript. For more information please check the help pages listed below:
https://acrobatusers.com/tutorials/javascript_console/
https://helpx.adobe.com/acrobat/using/applying-actions-scripts-pdfs.html

Hope it will help

Regards
Amal

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
May 10, 2024

Set those numbers as the Export Values of the check-boxes and then use the built-in Sum option under the Calculate tab of the total text field and select all the check-boxes.

Henry.Ong
Henry.OngAuthor
Inspiring
May 18, 2024

Thanks so much for this solution.

Participant
July 10, 2024

Is there a max number of Check Boxes you can add?  I cannot get this to work no matter what I try 😞