These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Summing values based on radio button selection

ssaxe
Registered: Sep 12 2011
Posts: 1
Answered

Good Day,
 
I am creating a form in which I have a table with a text field where a user will input an Amount, these fields are named Amount.n where n is the row number. I also have 6 radio buttons on each row with export values of 1-6, named rb.n where n is again the row number. What I wish to accomplish is a text field at the bottom of each radio button column that sums the values the user has inputted in the Amount column only if the radio button is selected for that row.
 
I've scoured the internet and these forums for topics to this regard without any luck. Any help would be greatly appreciated .
 
Thanks
 
Steve.

My Product Information:
Acrobat Pro 10.1, Windows
KellyMcC
Acrobat 9ExpertTeam
Registered: Jul 11 2011
Posts: 389
Accepted Answer
Steve,

These pages may help get you started.

Check out Custom Calculation script here:
http://acrobatusers.com/tutorials/2006/create_use_layers

Check out the Conditional Calculation Example at the bottom of this page:
http://www.pdfscripting.com/public/47.cfm

Kelly McCathran
Adobe Community Expert
Certified Technical Trainer+

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
This article on conditional execution will also help:
http://acrobatusers.com/tutorials/conditional-execution


Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script