Create a PDF Image Drop-Down List in Adobe Acrobat
Question details
Create a PDF form that displays a predefined image based on a drop-down selection.

- Product
- Adobe Acrobat PDF forms
- Device & OS
- not provided
- Scenario
- A form designer wants users to select an image by name from a list.
- Observed behavior
- A regular drop-down list selects an image name, and JavaScript displays the corresponding image field.
Use a version of Adobe Acrobat with the Prepare a Form tool, and gather the images you want to offer. The completed form needs a PDF viewer that supports Acrobat JavaScript for the image switching to work.
Show predefined images with an Acrobat drop-down and JavaScript
Use a drop-down field to show the matching image button and hide the others.
PDF forms do not provide a standard drop-down control that directly displays a selected image. This approach uses button icons as image fields and a custom validation script on the drop-down.
Open the PDF in Acrobat and choose All tools > Prepare a form. Add a drop-down field and name it ImageChoice. In its Properties > Options tab, add None, Cat, and Dog as items, using the same text for their export values. Set None as the default and select Commit selected value immediately.
In Prepare a form, add two button fields in the image display area and name them Image_Cat and Image_Dog. For each button, open Properties > Options, choose an icon-only layout, and use Choose Icon to select the corresponding image.
Open Properties > General for each image button and set Form Field to Hidden. This matches the initial None selection.
Open the ImageChoice drop-down Properties > Validate tab, select Run custom validation script, and click Edit. Enter: var fields = ['Image_Cat', 'Image_Dog']; for (var i = 0; i < fields.length; i++) { var f = this.getField(fields[i]); if (f) f.display = (fields[i] === 'Image_' + event.value) ? display.visible : display.hidden; }
Save the PDF, exit form editing, and select Cat, Dog, and None from the drop-down. Confirm that only the corresponding image appears and that None hides both images.

Edit Office documents and PDFs with WPS Office
WPS Office is a free, lightweight alternative with a familiar interface and support for common Office formats, making it easier to move existing files into your workflow. Use its PDF tools for general editing; the scripted image-switching form above requires a suitable PDF form editor and JavaScript-compatible viewer.

Frequently Asked Questions
Can a PDF drop-down display an image directly?
A standard PDF drop-down lists text choices, not image previews. In Acrobat, you can use the selected value to show a separate button field containing the corresponding image.
Why does the image not change in my browser?
Some browser PDF viewers do not support Acrobat JavaScript. Open the saved PDF in a JavaScript-compatible viewer such as Acrobat or Acrobat Reader and check whether JavaScript is permitted.
How do I add more images to the list?
In Prepare a form, add another drop-down item and a button with its icon. Give the button a name such as Image_Bird, use Bird as the item's export value, and add 'Image_Bird' to the fields array in the validation script.
Can a pop-up menu replace the drop-down?
Yes. An Acrobat JavaScript pop-up menu can offer image names and then show the matching field, but it requires additional scripting to create and handle the menu.




