How to Use an IF Condition with a Word Drop-Down Content Control
Question details
The user needs to output different document content dynamically based on the selected value of a drop-down content control by using an IF field.

- Product
- Word Processing Software
- Device & OS
- not provided
- Scenario
- Creating dynamic templates or forms where the text changes conditionally based on the user's choice in a drop-down list.
- Observed behavior
- Modern drop-down content controls do not automatically provide a reference for IF fields, meaning the conditional field does not automatically update or populate without mapping, applying legacy fields, or manually refreshing.
Ensure the Developer tab is enabled in your software ribbon so you can access form controls, and familiarize yourself with inserting field codes by pressing Ctrl+F9.
Use a Mapped Content Control and Manually Update the IF Field
Map the modern drop-down content control to a bookmark and manually update the IF field to reflect the new selection.
Modern content controls require you to assign a specific bookmark or mapped reference so the IF field knows which value to test. Because modern controls do not trigger automatic calculation upon exit by default, you must manually refresh the document fields after changing the drop-down selection.
Navigate to the Developer tab, insert a Drop-Down List Content Control, and define its list items in Properties. Highlight the control and insert a Bookmark (e.g., 'Dropdown1') from the Insert tab.
Press Ctrl+F9 to insert empty field brackets. Inside the brackets, type your IF statement referencing the bookmark, for example: IF Dropdown1 = "Option A" "Result A" "Result B".
Select a new value from your drop-down list. Then, select the IF field (or press Ctrl+A to select the entire document) and press F9 to update the results based on your new selection.

Use Legacy Form Fields with Calculate on Exit
Use legacy drop-down form fields which have a built-in feature to calculate dependent IF fields automatically when you click away.
Automate Modern Controls with VBA Macros
Use a VBA macro to detect when a modern drop-down control is modified and automatically refresh the dependent IF fields.
Create Dynamic Forms and Conditional Fields in WPS Writer
WPS Writer fully supports field codes, bookmarks, and legacy form controls. You can effortlessly build dynamic documents containing drop-down lists and IF conditions without needing complex external tools.
- 1. Access the Developer Tools: Open WPS Writer and navigate to the Developer tab to find Form Controls.
- 2. Insert the Drop-Down Field: Click to insert a Drop-Down Form Field, then double-click it to add your list items and check 'Calculate on exit'.
- 3. Apply Conditional Logic: Press Ctrl+F9 to insert field brackets and type your IF condition referencing the drop-down's bookmark. The results will calculate seamlessly.

Frequently Asked Questions
Why isn't my IF field updating automatically when I change the drop-down selection?
Modern Word content controls do not trigger automatic field updates by default. You must either manually select the field and press F9 to update it, use legacy form fields with 'Calculate on exit' enabled, or utilize a VBA macro to automate the refresh process.
What is the difference between a modern content control and a legacy form field?
Modern content controls provide a cleaner user interface and advanced data mapping capabilities but lack automatic calculation triggers. Legacy form fields look older but include a built-in 'Calculate on exit' option, allowing linked fields to update instantly when the user moves to the next section.
How do I view the IF field formula instead of the text result?
You can toggle the display between field codes (the formula) and field results by pressing Alt+F9 on your keyboard. This will allow you to read and modify the IF condition logic.




