PDF Editing Issues

How to Create Category and Subcategory Dropdowns in Adobe Acrobat Pro

Emma BrownEmma Brown Oct 19, 2026 868 views

Question details

The user needs to learn how to create dependent selection options, specifically categories and subcategories, within a fillable PDF form.

How to Create Category and Subcategory Options in Adobe Acrobat Pro Forms
Product
Adobe Acrobat Pro
Device & OS
not provided
Scenario
Designing an interactive PDF form where selecting a primary category dynamically determines the choices available in a secondary subcategory dropdown.
Observed behavior
The user wants to implement a hierarchical dropdown structure, commonly achieved through form field properties and custom document JavaScript in Acrobat Pro.
Before you start

Before adding interactive fields, outline your category hierarchy in a text document so you know exactly which subcategories belong to each main category. Familiarize yourself with the Prepare Form tool in Acrobat.

Solution 1Recommended

Create Dependent Dropdowns using Custom JavaScript

The most robust method to link a subcategory directly to a primary category in Acrobat Pro is by using document-level JavaScript applied to dropdown fields.

Standard PDF form tools do not inherently link two dropdown menus. To achieve dynamic behavior where the second menu changes based on the first, you must use a custom Keystroke script.

1
Open the Prepare Form Tool

Go to 'Tools' > 'Prepare Form'. Add two Dropdown list fields to your document. Name the first one 'Category' and the second one 'Subcategory'.

2
Configure Primary Dropdown Options

Double-click the 'Category' field to open its Properties. Under the 'Options' tab, add your primary categories (e.g., Hardware, Software). Ensure you check the box for 'Commit selected value immediately'.

3
Apply Custom JavaScript

While still in the 'Category' field properties, switch to the 'Format' tab. Choose 'Custom' from the Select format category dropdown, and click 'Edit' next to Custom Keystroke Script. Enter the JavaScript code that maps your categories to an array of subcategory items.

4
Test the Dynamic Fields

Close the field properties and click 'Preview' at the top right. Select a category in the first dropdown and verify that the second dropdown updates with the correct subcategories.

Create Dependent Dropdowns using Custom JavaScript
JavaScript Syntax: Ensure your custom script correctly references the exact names of your form fields. A simple typo in the field name will prevent the subcategory array from populating.

Create Interactive PDF Forms Easily with WPS Office

WPS Office offers a powerful PDF Editor that allows you to easily design, edit, and fill out interactive forms. Add text boxes, checkboxes, and dropdown lists quickly with a user-friendly interface.

  1. 1. Open PDF Editor: Launch WPS Office and open your PDF document, or start with a blank page to build a new form.
  2. 2. Access Form Tools: Navigate to the 'Form' tab located on the top ribbon to reveal the interactive form controls.
  3. 3. Insert Dropdown Fields: Select the 'Drop-Down List' icon and click on your document where you want the category selection to appear.
  4. 4. Add List Items: Double-click the inserted field to open its properties, type your category options into the list, and save your interactive PDF.
Easily insert Drop-Down Lists and Combo Boxes for form categorization.Fully compatible with standard Adobe PDF form formats.Intuitive drag-and-drop interface requires no advanced technical skills.Lightweight, cost-effective alternative for everyday document tasks.
microsoft office alternative - wps office

Frequently Asked Questions

Can I create dependent dropdowns in Acrobat without using JavaScript?

No, standard Acrobat form properties do not have a built-in feature to link the choices of one dropdown to another. You must use Document JavaScript to define arrays and push them to the subcategory field based on the primary selection.

Why is my subcategory dropdown not updating automatically?

This usually happens if you forgot to check 'Commit selected value immediately' in the Options tab of your primary Category dropdown. Without this, the script doesn't trigger until you click outside the field.

How do I hide the subcategory field until a main category is chosen?

Open the subcategory field's properties, go to the General tab, and set 'Form Field' to 'Hidden'. Then, add a script to your primary category field that changes the subcategory field's state to 'Visible' once a valid choice is made.