Fix Word Showing Field Codes Instead of Table of Contents
Question details
The user is seeing raw field code markup in their documents instead of the actual formatted headers, footers, and table of contents.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Viewing or editing new and older documents after updating to Word Version 2410.
- Observed behavior
- Headers, footers, and the table of contents display field-code markup rather than their normal formatted results.
Ensure your document is in Print Layout view and check if your keyboard requires the Function (Fn) key to use standard F1-F12 keys.
Toggle Field Codes Using Keyboard Shortcuts
The fastest way to revert field codes back to normal text is by using the Alt+F9 shortcut.
Microsoft Word uses field codes as placeholders for dynamic data like table of contents and headers. Sometimes, an update (such as Version 2410) or an accidental keystroke can switch the display from formatted results to raw codes.
Launch Microsoft Word and open the document that is currently displaying the field code markup.
Press the 'Alt' and 'F9' keys on your keyboard simultaneously. If you are using a laptop or a compact keyboard, you may need to press 'Alt' + 'Fn' + 'F9'.
Scroll through your document to check if the headers, footers, and table of contents have returned to their normal, readable formats.

Disable Field Codes in Word Options
If the keyboard shortcut does not work, you can manually disable the field code display via Word's advanced settings.
Experience Hassle-Free Document Editing with WPS Office
Tired of unexpected layout changes and update glitches in Microsoft Word? Try WPS Office. It provides a lightweight, highly compatible, and user-friendly alternative for all your document needs without the premium price tag.
- 1. Download WPS Office: Visit the official WPS website to download and install WPS Office Free on your device.
- 2. Open Your Document: Launch WPS Writer and open your existing Word document directly.
- 3. Edit Seamlessly: View and edit your document instantly with all headers, footers, and table of contents perfectly formatted.

Frequently Asked Questions
Why did my Word document suddenly change to field codes?
This usually happens due to an accidental press of the Alt+F9 shortcut key, or occasionally as a default view change following a recent software update (like Word Version 2410).
What is a field code in Microsoft Word?
A field code is a placeholder text used by Word to generate dynamic data, such as page numbers, dates, or a table of contents. It typically looks like text enclosed in curly braces, such as { TOC }.
Why isn't Alt+F9 working on my laptop?
Many modern laptops and compact keyboards require you to press the Function (Fn) key to activate the standard F-keys. Try pressing Alt + Fn + F9 simultaneously to toggle the field codes.
Can I print the document with field codes showing?
Yes, if the 'Print field codes instead of their values' option is enabled in Word's print settings, they will print as codes. To print the normal text, ensure you toggle the view back to normal results before printing.




