Fix Word Showing Different Field Codes with Alt+F9 vs Toggle
Question details
The user is trying to understand why a Word document displays a FORMTEXT field when pressing Alt+F9, but shows a REF field when using the 'Toggle Field Codes' context menu option.
- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Inspecting and editing complex or nested field codes within a document.
- Observed behavior
- Using Alt+F9 displays a different underlying field code than using the right-click 'Toggle Field Codes' option on the same text.
Before inspecting complex nested fields, make sure to turn on formatting marks (Ctrl+Shift+8) to see all spaces and hidden characters, and create a backup copy of your document to prevent accidental edits.
Inspect Nested Fields and Adjust Display Settings
Understand the scope of the Alt+F9 global shortcut versus the context menu toggle to properly identify nested fields like a REF inside a FORMTEXT.
Alt+F9 toggles the field-code display for the entire document all at once. In contrast, right-clicking and selecting 'Toggle Field Codes' only affects the currently selected field.
When fields are nested (for example, a REF field embedded inside a FORMTEXT field), toggling at the document level may reveal the outer field layer, while toggling a specific text selection might reveal the inner nested field. Inspecting both layers is necessary for complex documents.
Highlight the text or field that is displaying the unexpected behavior in your document.
Right-click the highlighted text and choose 'Toggle Field Codes' to see the immediate underlying field code (e.g., the REF field).
Press 'Alt+F9' on your keyboard to reveal all field codes globally. Observe the nested structure, which might look like { FORMTEXT { REF } }.
To make nested fields easier to distinguish visually, go to File > Options > Advanced. Scroll down to 'Show document content', set 'Field shading' to 'Always', and click OK.
Manage Document Field Codes Seamlessly in WPS Writer
WPS Writer fully supports complex field codes, including cross-references, formulas, and form fields. You can easily toggle, inspect, and edit nested fields with an intuitive interface and full compatibility with Microsoft Word documents.
- 1. Open your document: Launch WPS Writer and open the document containing the complex field codes.
- 2. Use global toggle: Press Alt+F9 on your keyboard to instantly reveal all underlying field codes across the entire document.
- 3. Toggle individual fields: To inspect a specific nested field, highlight it, right-click, and select 'Toggle Field Codes' from the context menu.
- 4. Edit field parameters: Modify the text or instructions directly within the curly brackets { } as needed.
- 5. Update and hide: Press Alt+F9 again to hide the codes, then press F9 to update the fields and display the final results.

Frequently Asked Questions
What is the exact difference between Alt+F9 and Toggle Field Codes?
Alt+F9 is a global keyboard shortcut that switches the display of all field codes in the entire document at once. The 'Toggle Field Codes' right-click option only applies to the specific field you currently have selected.
Why do I see a FORMTEXT code when I expected a REF code?
This happens when fields are nested. The document likely contains a reference (REF) field embedded inside a form text (FORMTEXT) field. Depending on whether you toggle the document or just the selection, Word will show you different layers of that nesting.
How can I safely share my document for troubleshooting field codes?
Create a copy of your document, remove any sensitive or personal information (sanitize it), and upload it to a cloud service like OneDrive or Dropbox. You can then share a viewing link with support forums or Microsoft Support.
How do I make field codes easier to spot in a Word document?
You can turn on Field Shading to highlight all fields with a grey background. Go to File > Options > Advanced, scroll down to the 'Show document content' section, and change the 'Field shading' dropdown to 'Always'.




