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

Combo Box/ Calculation question

KValleyMB
Registered: Oct 12 2011
Posts: 8
Answered

Hello all, I am a NOOB, but learning from Ted Padova's book, forms and Live Cycle.... but there are a few things not touched upon in it... they come close though. Is it possible to use a response in a combo box to call a calculation script?
Combo Box options are: New App, Inter Transfer, Outer Transfer. Depending on which response they choose, I need to change the visibility of fields and call up a calculation script. The box I need to call the calc scripts is Registration, and it is a read only box. The .visible = True fields will be based upon the choice made in the the Combo Box. I assume the .visible script will be in actions and an if then statement.
Am I even close to anything?
Using Windows XP, Acrobat Pro 9.0.
Randy

My Product Information:
Acrobat Pro 9.0, Windows
try67
Expert
Registered: Oct 30 2008
Posts: 2398
Accepted Answer
If you want to use the selected value of a combo-box to trigger some other action, use the Validate event.
There you can access event.value, check what it is, and based on that do some other things.
Be aware that you can't trigger the Calculate event of a field, but you can explicitly assign a value to that field (however, in that case you might have a conflict between this script and that field's actual calculation code).
Also, don't use the visible property. It has been deprecated. Use the display property instead.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

KValleyMB
Registered: Oct 12 2011
Posts: 8
Excellent, I think maybe it would be easier to go with Radio buttons instead and not the Combo Box.
Can you or someone tell me some things that are not explained in the Book like: bUI... what is the "b" stand for and what does UI stand for. and when setting up an Submit button it is written as cCC, cTo, cBCC... what is "c"?
Are they just acronyms for something? or a Control and Button?

try67
Expert
Registered: Oct 30 2008
Posts: 2398
Those are the names of the parameters that this function takes. "b" in the beginning stands for Boolean, meaning the value can be either true or false. UI means User-Interface. I'm not sure what the "c" stands for, but it means that parameter is a String.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com