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

Display hidden fields

patra
Registered: Oct 19 2006
Posts: 270

How can I with a drop down menu(something like Index:Item 1, Item 2,..), to display the hidden picture of the selected item.
Thanks

Acrobat 8.0/Reader7-8

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Is this a LiveCycle or AcroForm? There is a big difference between them in the code for displaying form elements.

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

patra
Registered: Oct 19 2006
Posts: 270
I am using Acrobat Pro 8.0
Users Reader 7/8

Thanks for all your help
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Images in a PDF can be controled from JavaScript in one of two ways, with OCGs or with a Button field. Button fields can display an image and are easier to work with that OCGs. You could stack up a bunch of buttons on top of one another, each with a different image.

Here's an article on showing and hideing form fields.

http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/show_hide_fields/

It doesn't show using a dropdown list or popup menu. Here are two articles that cover using these items

http://www.acrobatusers.com/tutorials/2007/js_popup_menus/

http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/change_another_field/

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