Document Editing Problems

Use a Word Drop-Down Field in an IF-THEN-ELSE Formula

Rana GarciaRana Garcia Nov 22, 2026 868 views

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.
Before you start

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.

Solution 1Recommended

Use an IF field with a legacy Word drop-down

Use this method when the selection comes from a legacy drop-down form field.

1
Configure the drop-down

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.

2
Enable calculation

In the drop-down field's properties, select Calculate on Exit and confirm the settings.

3
Insert the IF field

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.

4
Test the form

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.

Match the option text: The comparison text, such as "Pass", should match the drop-down option. On some Mac keyboards, you may also need the Fn key to use F9.
Free Microsoft Office alternative

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.

Open and edit Microsoft Word DOC and DOCX filesUse a familiar document-editing interfaceReview and edit the surrounding text in form documentsMove existing documents into a free, lightweight office suite
QA img-9

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.