How to Fix Word Fields Mixing Source and Destination Formatting
Question details
The user needs to prevent document fields from inconsistently mixing source and destination formatting during updates.

- Product
- Word Processing Software
- Device & OS
- not provided
- Scenario
- Updating document fields when the 'Preserve formatting during updates' setting is enabled.
- Observed behavior
- The field results display a mix of formatting, often applying source styles to just a few characters rather than maintaining a uniform appearance.
Ensure you know how to toggle field codes in your document (typically by pressing Alt + F9), as you will need to view and edit the hidden field instructions directly.
Use the CHARFORMAT Switch to Force Consistent Formatting
Applying the \* CHARFORMAT switch tells the word processor to format the entire field result based strictly on the styling applied to the first character of the field code.
By default, fields might use the MERGEFORMAT switch, which attempts to preserve previous manual formatting but often causes mixed font styles when the source text changes. The CHARFORMAT switch is a more reliable alternative.
Right-click the problematic field and select 'Toggle Field Codes' from the context menu, or press Alt + F9 to reveal the hidden code.
Click inside the field code brackets. At the very end of the existing instructions, type '\* CHARFORMAT'.
Highlight the very first character of the field code (usually the letter immediately following the opening bracket) and apply your desired font style, size, and color from the Home tab.
Right-click the field code again and select 'Update Field' (or press F9). The field will collapse back into text, and the result will uniformly match the formatting of that first character.

Manage Fields and Formatting Seamlessly in WPS Writer
WPS Writer offers robust compatibility with standard field codes and advanced formatting switches, allowing you to create dynamically updated documents without styling glitches.
- 1. Open your Document: Launch WPS Writer and open the document containing the fields you need to format.
- 2. Toggle Field Codes: Right-click on the specific field and choose 'Toggle Field Codes' from the context menu to view the underlying code.
- 3. Apply CHARFORMAT: Add the \* CHARFORMAT switch at the end of the code, format the first letter to your liking, and right-click to select 'Update Field'.

Frequently Asked Questions
What does 'Preserve formatting during updates' actually do?
This setting adds the \* MERGEFORMAT switch to your field code. It attempts to retain any manual formatting you applied to the previous field result when the field updates. However, it can sometimes produce mixed or inconsistent results if the structure or length of the source data changes significantly.
What is the exact difference between MERGEFORMAT and CHARFORMAT?
MERGEFORMAT updates the field while trying to map previous manual formatting to the new result word-by-word, which can lead to mixed styles. CHARFORMAT ignores previous manual edits and strictly applies the formatting of the very first character of the field code to the entire field result.
Why does my document show strange bracketed codes instead of normal text?
Your document is currently set to display field codes instead of field results. You can easily toggle this view off by pressing Alt + F9 on Windows, or by right-clicking the specific field and selecting 'Toggle Field Codes'.




