How to Create a Word Dropdown List That Displays Different Content
Question details
The user wants to set up a dynamic laboratory report where selecting a specific test from a dropdown automatically displays its corresponding equipment, procedures, and image requirements.

- Product
- Microsoft Word 2021
- Device & OS
- macOS
- Scenario
- Creating an interactive laboratory report form with conditional content based on user selections from a dropdown menu.
- Observed behavior
- The user needs a method to dynamically show or hide specific document sections, such as bookmarked text and images, triggered by changing the value of a dropdown list.
Ensure the Developer tab is enabled in your Word preferences, as you will need access to legacy form controls, bookmarks, or the VBA macro editor.
Use Legacy Dropdown Fields and Conditional IF Statements
This method utilizes Word's built-in field codes to conditionally display text based on a legacy dropdown selection, requiring no VBA programming.
This approach is highly effective for inserting text-based conditional content. Note that you must use Legacy Form fields instead of modern Content Controls for this specific built-in functionality.
Navigate to the Developer tab, insert a Legacy Drop-Down Form Field, and double-click it to open its properties. Assign it the bookmark name 'ddMain' and add your list items (e.g., Test A, Test B, Test C).
In the same Drop-Down Form Field Options window, ensure the box for 'Calculate on exit' is checked. This tells Word to update the document fields whenever the user changes the dropdown selection.
Click where you want the conditional text to appear. Press Cmd+F9 to insert functional field braces {}. Inside the braces, construct your logic: { IF { REF ddMain } = "Test A" "Output for Test A" }. Repeat this step for Tests B and C.
To test the dropdown, you must restrict editing. Go to the Developer tab, select 'Protect Form' or restrict editing to 'Filling in forms'. Change the dropdown value and click away to see the content update.

Use a VBA Exit Macro to Toggle Hidden Bookmarks
Best for complex layouts containing tables and images, this uses a VBA exit macro to toggle the hidden font attribute of specific bookmarked sections.
Create and Edit Complex Documents Easily with WPS Office
If managing legacy form fields, field codes, and VBA macros in Word for Mac feels overly complicated, try WPS Office. It provides a highly compatible and intuitive interface for designing professional reports, forms, and documents without the hassle.
- 1. Download WPS Office: Visit the official WPS Office website and download the installer for macOS.
- 2. Install the Application: Open the downloaded package and follow the on-screen instructions to install WPS Office on your Mac.
- 3. Open Your Document: Launch WPS Office and open your .docx file to seamlessly continue formatting your interactive reports.

Frequently Asked Questions
Why aren't my IF field codes updating automatically after making a selection?
Field codes do not always update in real-time. You must ensure you have checked the 'Calculate on exit' box in the dropdown's properties. Additionally, the document must be protected for 'Filling in forms' for the exit trigger to execute properly.
Can I hide images or tables using the IF field method?
The standard IF field method is primarily designed for plain text. While it can sometimes handle simple inline graphics, hiding or showing complex elements like tables, extensive formatting, or floating images is best handled using Bookmarks combined with a VBA macro.
How do I type the curly braces for field codes on Mac?
You cannot type the curly braces manually using the standard keyboard brackets { }. You must press Cmd+F9 (or Cmd+Fn+F9 depending on your Mac's keyboard configuration) to insert functional field code braces that Word recognizes.
Why does my VBA macro not run on Word for Mac?
Word for Mac has strict security and sandbox restrictions. Ensure macros are enabled in your Trust Center settings, the document is saved in a Macro-Enabled format (.docm), and verify that your VBA syntax does not rely on Windows-specific ActiveX controls which are not supported on macOS.




