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

How to populate a text field with a selection from a drop down menu??

tetrylone
Registered: Nov 29 2011
Posts: 5

Hi there,
 
I am trying to get a text field to display the exact contents of a dropdown selection. I need to do this because the drop down selections are too long to display. As an example, if a user selects "little red riding hood" the drop down menu will only display "little red rid". I need a text field to display (with text wrap) "Little red riding hood".
 
Any help would be greatly appreciated.
 
I am using windows vista and adobe acrobat 10.
 
Thanks!

Thanks!

My Product Information:
Acrobat Pro 10.1, Windows
try67
Expert
Registered: Oct 30 2008
Posts: 2398
Just set the drop-down's font size to Automatic.

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

tetrylone
Registered: Nov 29 2011
Posts: 5
A very elegant solution but it won't work for this purpose. The formatting of the finished product will look to janky. Thanks though... any one know of a script that might work for this purpose?

Thanks!

try67
Expert
Registered: Oct 30 2008
Posts: 2398
Use this code as the custom calculation code of your text box (adjust the name of the combo-box, of course):

event.value = this.getField("Combo Box1").value;

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