PDF Editing Issues

Create a PDF Image Drop-Down List in Adobe Acrobat

Aamir Naveed AkramAamir Naveed Akram Nov 19, 2026 868 views

Question details

Create a PDF form that displays a predefined image based on a drop-down selection.

Create a PDF Image Drop-Down List in Adobe Acrobat
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.
Before you start

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.

Solution 1Recommended

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.

1
Create 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.

2
Add image buttons

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.

3
Hide the images initially

Open Properties > General for each image button and set Form Field to Hidden. This matches the initial None selection.

4
Add the switching script

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; }

5
Test the selection

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.

Show predefined images with an Acrobat drop-down and JavaScript
Viewer support matters: The switching depends on Acrobat JavaScript. Some browser PDF viewers or restricted environments may not run the script; test the form in the viewer your recipients will use.
Free Microsoft Office alternative

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.

Work with PDFs alongside documents, spreadsheets, and presentationsCompatible with Microsoft Office formats including DOCX, XLSX, and PPTXFamiliar interface for a smooth transition from Microsoft OfficeFree, lightweight suite for everyday document tasks
microsoft office alternative - wps office

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.