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

Math Capabilities in Combo Box

JerrySaumier
Registered: Mar 19 2007
Posts: 14

I am creating an order form for a product that is limited to 30 spaces. The items that are ordered can take 1, 2 or 3 spaces. I'd like to be able to have the customer pick the quantities of each item in a combo box, the number of spaces for each item and then subtract the (quantitiesXnumber of spaces) from 30. Then in the next combo box, the max that could be chosen would be the remaining spaces. Can this be done (provided I described this well enough to be understood)?

My Product Information:
Acrobat Pro 8, Macintosh
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
You didn't describe it very well at all, but I can garentee you that this can be done with a script in the "Change" event for the first combobox. What this script looks like depends on the forms technology, XFA(LiveCycle) or AcroForm(native Acrobat). Which are you using?

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

JerrySaumier
Registered: Mar 19 2007
Posts: 14
You're right. Let me try again. Imagine the circuit breaker box in your residence with 30 spaces. Each breaker can take up one space, two spaces or three spaces. Customers may order (14) 1 space breakers, (5) 2 space breakers and (2) 3 space breakers for a total of (30) spaces.

In my document, I have ten rows of two combo boxes. The first box has the number of breakers (1-30) and the second box has the number of spaces (1-3). As the customer picks each row, I would like the number of spaces tallied up (# of breakers time the number of spaces) and subtracted from the maximum, 30. This would change the combo box selections from a maximum of 30 down to 0. (Hope this is better?)

I am using Acrobat 8.0 on the Mac.

Thanks for your help.

Jerry