logo
search
Document Editing Problems

How to Restore Missing Word Field Codes in Captions and TOC

Olivia MillerOlivia Miller Sep 30, 2026 868 views

Question details

The user needs to recover field codes for a table of contents, list of figures, and captions that disappeared or were converted to plain text after being opened by another organization.

How to Restore Missing Word Field Codes in Captions and Tables of Contents
Product
Microsoft Word
Device & OS
not provided
Scenario
A document was shared with another organization, and the dynamic fields (like the TOC and captions) were inadvertently altered, displaying raw codes or converted to static plain text.
Observed behavior
Dynamic document fields are no longer updating. They are either appearing as static plain text because they were unlinked, or displaying raw field codes instead of their calculated values.
Before you start

Before making structural changes to your document, check if you have a previous version saved in your backup or cloud storage, as permanently unlinked fields (converted to plain text) may need to be restored from an earlier file.

Solution 1Recommended

Toggle Field Code Display

Use this method if your document is displaying raw field bracket codes (e.g., { TOC }) instead of the actual table of contents or caption text.

Sometimes users accidentally switch the document view to show field codes instead of values. Pressing Ctrl+Shift+F9 by mistake will permanently unlink fields, but if they just look like raw code, they simply need to be toggled back.

1
Use the Keyboard Shortcut

Click anywhere inside your document and press 'Alt+F9' (or 'Alt+Fn+F9' on some laptops) to instantly toggle between field codes and their displayed values.

2
Adjust Advanced Word Options

Alternatively, navigate to 'File' > 'Options' > 'Advanced'. Scroll down to the 'Show document content' section.

3
Disable Field Code View

Uncheck the box that says 'Show field codes instead of their values' and click 'OK'.

Toggle Field Code Display
Tip: If you only want to toggle a single specific field rather than the whole document, select that specific field and press 'Shift+F9'.
Efficient Document Editing

Easily Manage Field Codes and Tables of Contents with WPS Office

WPS Writer offers a highly compatible and intuitive interface for handling complex document elements like tables of contents, captions, and cross-references, completely eliminating the confusion of accidental code deletion.

  1. 1. Open Your Document: Launch WPS Writer and open your .docx file containing the tables and captions.
  2. 2. Navigate to References: Click on the 'Reference' tab on the top ribbon to access all dynamic field tools.
  3. 3. Manage Table of Contents: Click 'Table of Contents' to instantly insert, update, or customize your document's navigation structure.
  4. 4. Update Fields Easily: Right-click any caption or field and select 'Update Field' from the context menu to refresh its data automatically.
Fully compatible with Microsoft Word (.docx) field codes, ensuring flawless collaboration.Intuitive visual interface for inserting, updating, and managing your Tables of Contents.Clear indicators prevent accidental unlinking or locking of crucial document fields.Free, lightweight alternative that runs smoothly on any device.
microsoft office alternative - wps office

Frequently Asked Questions

What is the shortcut to update all fields in a Word document at once?

To update all fields simultaneously, select the entire document by pressing Ctrl+A, then press F9. This will refresh your table of contents, list of figures, captions, and any other dynamic formulas.

Why are my Word fields showing as code instead of normal text?

You or a collaborator may have accidentally enabled the field code view. Press Alt+F9 (or Alt+Fn+F9 on some laptops) to toggle back to the normal text display. You can also disable this in File > Options > Advanced.

Can I reverse the Ctrl+Shift+F9 command if I just pressed it?

Yes, if you immediately realize the mistake, you can press Ctrl+Z to undo the unlinking action. However, if the document has been saved, closed, and reopened, the fields are permanently converted to plain text and must be manually rebuilt.

How do I know if my Word field is locked?

If a field is locked, it will not change when you press F9 to update it. For example, your table of contents will not reflect newly added pages. You can resolve this by highlighting the text and pressing Ctrl+Shift+F11 to unlock it.