Use a Word Drop-Down Field in an IF-THEN-ELSE Formula
Question details
The user wants to display different text in a Word document based on a drop-down or check-box selection.
- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- A form should display a message such as a pass or fail statement according to the selected answer.
- Observed behavior
- The desired result is conditional text that corresponds to the form selection.
Identify whether the drop-down is a legacy form field or a content control; the field-code method below is for legacy fields. Enable the Developer tab in Word if it is not visible.
Use an IF field with a legacy Word drop-down
Use this method when the selection comes from a legacy drop-down form field.
On the Developer tab, open Legacy Tools and insert a legacy drop-down form field. Open its properties, add options such as Pass and Fail, and note its bookmark name, such as Dropdown1.
In the drop-down field's properties, select Calculate on Exit and confirm the settings.
Place the cursor where the result should appear. Use Ctrl+F9 on Windows or Cmd+F9 on Mac to insert the outer field braces, then insert another pair for the nested REF field. Enter the code so it reads: { IF { REF Dropdown1 } = "Pass" "Well done" "Candidate needs to address the following shortcomings" }. Replace Dropdown1 with the actual bookmark name. Do not type the field braces manually.
Use Developer > Restrict Editing to allow filling in forms if needed, then select an option and leave the drop-down. Check that the corresponding text appears; select the result field and press F9 to update it manually if necessary.
Use a macro for a Word content control
Consider this approach when the drop-down is a content control rather than a legacy form field.
Edit Word documents with WPS Writer
WPS Office is a free, lightweight alternative with a familiar interface for editing documents and moving between office suites. It does not fix Microsoft Word's form-field or VBA behavior, so test advanced forms in Word before distributing them.

Frequently Asked Questions
Why does Word show the IF formula instead of its result?
The document may be displaying field codes. On Windows, press Alt+F9 to toggle field-code display, or right-click the field and choose Toggle Field Codes.
Why doesn't the result change after I select an option?
Open the legacy drop-down's properties and enable Calculate on Exit. Leave the drop-down after making a selection, and check that the REF field uses the correct bookmark name. You can also select the result field and press F9 to update it.
Can I type the braces around the IF and REF fields?
No. Insert each pair of field braces with Ctrl+F9 on Windows or Cmd+F9 on Mac. Typed braces are ordinary characters, not Word field delimiters.
Does the legacy drop-down formula work with a content control?
Not directly in the same way. For a content control, a VBA macro can read the selection and update text; save the document as a .docm file and run the macro only if it is trusted.




