Fix Visible Field Codes in Microsoft Word Documents
Question details
The user wants Word to display normal page numbers and other field results instead of field codes.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- A Word document appears scrambled while displaying codes where page numbers or other field results should appear.
- Observed behavior
- Field codes such as {PAGE\*MERGEFORMAT} are visible instead of their calculated results.
Open the affected document in Microsoft Word and check whether the scrambled text includes field codes in braces. If you are using a laptop, check whether its function keys require the Fn key.
Toggle Word Field Codes Back to Their Results
Use a keyboard shortcut to switch all displayed field codes back to their results.
Open the affected file in Microsoft Word and locate a visible field code, such as the PAGE code in the footer.
Press Alt+F9. On some laptops, press Alt+Fn+F9 instead.
Look at the page number or another affected field to confirm that its result appears instead of the code.

Turn Off Field-Code Display in Word Options
Use Word's display settings if you prefer to change the option through a menu.
Open Word Documents in WPS Writer
WPS Office is a free, lightweight alternative with a familiar interface for opening and editing Word documents. Its format compatibility makes it easy to move existing files into WPS Writer, although it does not change Microsoft Word's field-code settings.

Frequently Asked Questions
Why does my page number appear as a PAGE code?
Word is displaying the field code rather than its result. Press Alt+F9 to toggle field-code display, or clear the field-code option under File > Options > Advanced.
What if Alt+F9 does not work on my laptop?
Try Alt+Fn+F9, since some laptops require Fn to activate the F9 function key.
Where can I turn off field codes without a shortcut?
Go to File > Options > Advanced. Under Show document content, clear Show field codes instead of their values, then select OK.
Will hiding field codes fix every scrambled Word document?
No. It restores the display of field results, but unrelated formatting or layout problems may need separate troubleshooting.




