logo
search
Document Editing Problems

How to Calculate Totals from Drop-Down Form Fields in Word

Maira MehtabMaira Mehtab Sep 20, 2026 868 views

Question details

The user wants to automatically calculate and display the sum of numerical values selected from multiple drop-down form fields in a Word document.

Product
Word
Device & OS
not provided
Scenario
Creating a fillable form with drop-down lists where a total needs to be automatically calculated based on user selections.
Observed behavior
The user is trying to set up automatic calculation but lacks the 'Calculate on exit' option or is unsure how to properly configure the formula field.
Before you start

Ensure your Developer tab is enabled in Word to access form controls, and decide whether you prefer automatic calculation using Legacy Forms or manual updates using Content Controls.

Solution 1Recommended

Use Legacy Drop-Down Form Fields for Automatic Calculation

This method is recommended because it allows the total to update automatically when the user exits a drop-down field, provided the document is restricted to form filling.

The 'Calculate on exit' functionality is exclusive to Legacy Form Fields. Modern Content Controls do not support this feature natively.

1
Insert Legacy Form Fields

Go to the Developer tab, click the 'Legacy Tools' briefcase icon, and select 'Drop-Down Form Field' to insert it into your document.

2
Configure Field Properties

Double-click the inserted drop-down field to open its Options. Add your numeric choices, assign a unique Bookmark name (e.g., 'First', 'Second'), check the 'Calculate on exit' box, and click OK.

3
Insert the Formula Field

Click where you want the total to appear and press Ctrl+F9 to insert a field code bracket. Type an equals sign followed by your bookmark names separated by plus signs, for example: { = First + Second + Third }.

4
Restrict Editing to Forms

Go to the Developer tab, click 'Restrict Editing', check the box under 'Editing restrictions', choose 'Filling in forms' from the drop-down menu, and click 'Yes, Start Enforcing Protection'. The calculation will now trigger automatically upon field exit.

Document Protection: Protecting the document for 'Filling in forms' is mandatory for the 'Calculate on exit' feature to work properly.
Efficient Document Creation

Create and Calculate Fillable Forms Easily in WPS Writer

WPS Office provides robust and intuitive Developer tools for creating interactive, fillable forms. You can easily insert legacy drop-down lists, set bookmarks, and configure formulas to automatically calculate totals in your documents.

  1. 1. Enable the Developer Tab: Open your document in WPS Writer. If the Developer tab is not visible, go to Menu > Options > Customize Ribbon and enable 'Developer'.
  2. 2. Insert and Configure Drop-Downs: Under the Developer tab, select 'Drop-Down Form Field' from the Forms toolbar. Double-click it to add numeric values, set a Bookmark, and check 'Calculate on exit'.
  3. 3. Insert Formula and Protect: Press Ctrl+F9 to insert your sum formula (e.g., { = Value1 + Value2 }). Finally, click 'Protect Document' in the Developer tab and restrict it to form filling.
Seamless compatibility with Microsoft Word form formats (.docx)Built-in Developer tab supporting legacy form fields and automatic calculationsLightweight, fast, and free to use for all your daily document tasks
microsoft office alternative - wps office

Frequently Asked Questions

Why is the 'Calculate on exit' option missing in my Word drop-down?

The 'Calculate on exit' option is exclusive to Legacy Form Fields. If you are using modern Drop-Down List Content Controls, this checkbox will not be available in the properties menu.

How do I show the Developer tab to insert form fields?

Go to File > Options > Customize Ribbon. In the right-hand pane, check the box next to 'Developer' and click OK. The Developer tab will now appear on your main ribbon.

Why isn't my formula field updating automatically when I change a drop-down value?

For automatic updates, ensure you are using Legacy Form Fields with 'Calculate on exit' checked, and verify that your document editing is restricted strictly to 'Filling in forms'.

Can I automatically update Content Control totals without pressing F9?

Yes, but it requires VBA. You can write a Document_ContentControlOnExit macro in a macro-enabled document (.docm) to force the formula field to update whenever a user leaves the content control.