How to Restore Missing Word Field Codes in Captions and TOC
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.

- 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 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.
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.
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.
Alternatively, navigate to 'File' > 'Options' > 'Advanced'. Scroll down to the 'Show document content' section.
Uncheck the box that says 'Show field codes instead of their values' and click 'OK'.

Unlock Frozen or Locked Fields
Apply this solution if your table of contents or captions are displaying text but are not updating when you add new content.
Restore Permanently Unlinked Fields
Follow this step if your fields were completely converted to plain text and no longer behave as dynamic elements.
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. Open Your Document: Launch WPS Writer and open your .docx file containing the tables and captions.
- 2. Navigate to References: Click on the 'Reference' tab on the top ribbon to access all dynamic field tools.
- 3. Manage Table of Contents: Click 'Table of Contents' to instantly insert, update, or customize your document's navigation structure.
- 4. Update Fields Easily: Right-click any caption or field and select 'Update Field' from the context menu to refresh its data automatically.

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.




