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

Help with Conditional Format Please

SKelly99
Registered: Apr 21 2010
Posts: 11

I've tried to find an answer to this, but the examples I used didn't yield the correct response.

Situation :
I am creating a form in Acrobat 9.0.0 Standard I have Combo Box2 with 'SOA' and 'FES' as choices. I have a text field that I want to automatically fill with '22' if SOA is chosen in Combo Box2 and '33' if FES is chosen in Combo Box2. If nothing is chosen, I need the field to remain blank. Can you help me with this formula?

Problem :
I am just learning about this so if you can keep the language simple I would appreciate it. I know the formula will be a little wild.

My Product Information:
Acrobat Standard 9.0, Windows
try67
Expert
Registered: Oct 30 2008
Posts: 2399
Put the following code in the text field's custom calculation field:
cb2 = this.getField("Combo Box2").value;if (cb2=="SOA") {event.value="22";} else if (cb2=="FES") {event.value="33";} else event.value = "";

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

SKelly99
Registered: Apr 21 2010
Posts: 11
SWEEEEEEEEET!!!!! Thank you so much! It works perfect!!!