How to Recover Word Text Trapped Inside a FORMTEXT Field
Question details
The user needs to extract and recover text that has been accidentally embedded inside a FORMTEXT field without losing the content.

- Product
- Word Processing Software
- Device & OS
- not provided
- Scenario
- Document text has become trapped inside a form field, making selection and editing difficult. The user wants to remove the field but keep the text.
- Observed behavior
- The content is difficult to select, copy, or edit. Deleting the field directly also deletes the enclosed document text.
Create a backup copy of your document before modifying field codes or running macros to prevent accidental data loss during the extraction process.
Manually Extract Text Using Field Codes
Use this method to reveal the hidden field codes and safely move the trapped text out of the FORMTEXT field.
By toggling the field codes view, you can see exactly where the field begins and ends, allowing you to select only your text and not the field itself.
Open your document and press Alt+F9 on your keyboard. This will display all field codes, changing the view of the trapped text to look something like { FORMTEXT Your trapped text here }.
Carefully click and drag to highlight only the text located between the 'FORMTEXT' code and the closing brace '}'. Do not include the curly braces {} in your selection.
Press Ctrl+X to cut the selected text. Move your cursor to a normal section of the document outside the field and press Ctrl+V to paste it safely.
Now that your text is safe, select the remaining empty { FORMTEXT } field and press the Delete or Backspace key to remove it entirely. Press Alt+F9 again to return to the normal document view.

Automate Extraction Using a VBA Macro
Use this method if you have a large document with massive amounts of text trapped in a field, preserving complex formatting and embedded objects.
Fix and Edit Form Fields Easily with WPS Writer
WPS Office offers robust document editing tools, seamlessly supporting field code manipulation and macros to help you rescue trapped text and format complex documents effortlessly.
- 1. Download and Install: Download WPS Office for free and install it on your device.
- 2. Open the Document: Launch WPS Writer and open the document containing the trapped FORMTEXT field.
- 3. Toggle Field Codes: Press Alt+F9 to instantly reveal the hidden field codes in your document.
- 4. Extract and Save: Highlight the text, cut it out of the braces, and safely paste it back into your main document workflow.

Frequently Asked Questions
What is a FORMTEXT field in a Word document?
A FORMTEXT field is a special type of form control used to create fillable text boxes in a document. It is often used in templates and standardized forms to restrict where a user can type.
Why does deleting the field also delete my text?
When text is typed or pasted directly into the parameters of a field code rather than normal document space, it becomes an embedded part of that field's structure. Deleting the field structure naturally deletes everything contained within its boundaries.
How do I turn off field codes after fixing the text?
You can toggle the field codes view on and off by pressing Alt+F9 on your keyboard. Pressing it once reveals the codes, and pressing it again hides them and returns to the normal text view.
Can I prevent text from getting trapped in fields in the future?
Yes. Ensure you are typing outside of form field boundaries, or convert your document to plain text if forms are no longer needed. Always check your cursor position before pasting large blocks of text into a form-heavy document.




