Formatting Issues

Fix Visible Field Codes in Microsoft Word Documents

Anum MushtaqAnum Mushtaq Nov 13, 2026 868 views

Question details

The user wants Word to display normal page numbers and other field results instead of field codes.

Fix Visible Field Codes in Microsoft Word Documents
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.
Before you start

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.

Solution 1Recommended

Toggle Word Field Codes Back to Their Results

Use a keyboard shortcut to switch all displayed field codes back to their results.

1
Open the document

Open the affected file in Microsoft Word and locate a visible field code, such as the PAGE code in the footer.

2
Toggle field display

Press Alt+F9. On some laptops, press Alt+Fn+F9 instead.

3
Check the results

Look at the page number or another affected field to confirm that its result appears instead of the code.

Toggle Word Field Codes Back to Their Results
If the layout is still scrambled: This shortcut changes field-code display. It may not resolve unrelated formatting or layout problems.
Free Microsoft Office alternative

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.

Open and edit documents containing page numbers in WPS WriterCompatible with Microsoft Word DOC and DOCX formatsFamiliar editing interface for an easier transitionFree and lightweight office suite
microsoft office alternative - wps office

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.