How to Fix Paragraph Breaks in Word Footers from Fill-In Fields
Question details
The user wants to automatically populate a document footer with a project number entered at startup, but pressing Enter in the Fill-In prompt inserts a paragraph break that misaligns the footer.

- Product
- Word
- Device & OS
- not provided
- Scenario
- Using a Fill-In field inside a template to prompt users for a project number when the document is created, which is then displayed in the footer.
- Observed behavior
- Pressing the Enter key inside the Fill-In prompt registers as a carriage return, inserting an unwanted paragraph break into the footer and ruining the layout.
Before modifying your document's fields, create a backup copy of your template and ensure that the Developer tab is enabled to easily access field controls and macros if needed.
Use ASK and REF Fields Instead of a FILL-IN Field
An ASK field stores the user's input in a hidden bookmark, which can then be safely displayed in the footer using a REF field without causing unwanted line breaks.
The FILL-IN field directly injects whatever you type (including the Enter key's carriage return) exactly where the field is placed. By switching to an ASK field, the prompt's input is saved as a variable, ensuring that pressing Enter merely submits the dialog without passing formatting breaks to the final text.
Double-click your footer to open it, locate the problematic FILL-IN field, and delete it entirely.
Click anywhere in the main body of your document (preferably at the very top). Press Ctrl+F9 to insert empty field brackets, and type: ASK ProjectNumber "Enter the Project Number:"
Double-click the footer where the project number should appear. Press Ctrl+F9 and type: REF ProjectNumber
Select the entire document (Ctrl+A) and press F9. The ASK prompt will appear. Type your number and click OK or press Enter. The footer will now display the number perfectly without extra paragraph breaks.

Create a Custom UserForm via VBA
For a more robust and professional solution, a custom UserForm gives you complete control over user inputs, bypassing field-related formatting quirks entirely.
Easily Manage Document Fields and Footers in WPS Writer
WPS Writer provides a robust, user-friendly interface for managing document fields, headers, and footers. You can effortlessly insert ASK and REF fields to automate your templates without struggling with hidden line breaks or formatting errors.
- 1. Open Field Settings: Launch WPS Writer, go to the 'Insert' tab, and click on 'Quick Parts' followed by 'Field'.
- 2. Insert the ASK Field: Select 'Ask' from the field list, configure your prompt text, and assign it a Bookmark name (e.g., ProjectNum).
- 3. Reference in Footer: Double-click the footer to edit it. Go back to 'Quick Parts' > 'Field', select 'Ref', and choose the bookmark you just created.
- 4. Update to Apply: Right-click the referenced field in your footer and select 'Update Field' to trigger the prompt and populate the text smoothly.

Frequently Asked Questions
Why does the Fill-In field add a line break in my footer?
When prompted by a Fill-In field, pressing the Enter key is often interpreted by the word processor as a carriage return rather than a command to simply submit the dialog box. This inserts an actual paragraph break into the field result, which forces your footer text to drop down a line.
What is the difference between an ASK field and a FILL-IN field?
A FILL-IN field displays the user's input exactly at the location where the field is placed in the document. An ASK field, however, prompts the user for input and stores it invisibly within a bookmark. You must then use a REF field to display that stored information anywhere in the document.
How can I prevent unwanted spacing in my footer design?
You should avoid using empty paragraph marks (pressing Enter multiple times) to push text around. Instead, use precise paragraph spacing settings, tab stops, or invisible table grids to structure your footer. This ensures the layout remains stable even if field values change.




