Document Editing Problems

How to Add a Footer to Every Word Page Except the Last in WPS Writer

Huda QurayshiHuda Qurayshi Nov 13, 2026 869 views

Question details

The user needs to add a footer that appears on every page of a Word document except the final page by using a conditional field that compares PAGE and NUMPAGES.

How to Add a Footer to Every Word Page Except the Last in WPS Writer
Product
WPS Office Writer
Device & OS
not provided
Scenario
Editing a multi-page Word-compatible document where footer content should be suppressed automatically only on the last page.
Observed behavior
The desired result is a footer that displays on all pages before the last page and is automatically blank on the final page.
Before you start

Open the document in WPS Writer and activate the footer area before creating the field. Press Alt+F9 so you can see the field braces and nested field codes while editing.

Solution 1Recommended

Create an IF field that hides the footer on the last page

Use this method when you want WPS Writer to automatically decide whether to show the footer by comparing the current page number with the total number of pages.

WPS Writer uses Word-compatible field-code syntax, so the conditional footer works in .doc and .docx files. The IF field shows the footer only when PAGE is less than NUMPAGES, which means the final page remains blank.

1
Open the footer in WPS Writer

Open the document in WPS Office Writer, go to Insert > Footer, and click in the footer area of any page, or double-click the bottom of a page to activate the footer.

2
Display field codes

Press Alt+F9 to toggle field-code display so you can see the field braces and nested fields while editing.

3
Insert the PAGE and NUMPAGES fields

Click Insert > Field, select Page in the field list, and click OK. Repeat this to insert NumPages, or type PAGE and NUMPAGES inside braces created with Ctrl+F9.

4
Create the IF condition

In the footer, press Ctrl+F9 to create an outer field brace, then type IF, insert PAGE, type <, insert NUMPAGES, and type "Custom Footer" inside the field so it reads: { IF { PAGE } < { NUMPAGES } "Custom Footer" }.

5
Toggle back and update fields

Press Alt+F9 again to show the footer result, then select all content with Ctrl+A and press F9 to update fields. The footer now appears on every page except the last.

Create an IF field that hides the footer on the last page
Footer updated successfully: If the condition is not evaluated correctly, press Alt+F9 and make sure there is a space before and after the < symbol and that the braces were created with Ctrl+F9, not typed as regular braces.

Set a Conditional Footer in WPS Writer

Use WPS Writer's built-in field-code support to show a custom footer on all pages except the last page of a Word-compatible document.

  1. 1. Open the document in WPS Writer: Launch WPS Office, open the Word document, and activate the footer area by clicking Insert > Footer or double-clicking the bottom of a page.
  2. 2. Insert the conditional footer field: Press Alt+F9, then create the field { IF { PAGE } < { NUMPAGES } "Custom Footer" } using Insert > Field for PAGE and NUMPAGES and Ctrl+F9 for braces.
  3. 3. Update fields and save: Press Alt+F9 to display the footer result, press Ctrl+A and F9 to update all fields, and save the document as a .docx or .doc file.
Supports Word field codes such as PAGE, NUMPAGES, and IF for dynamic footersFull compatibility with Microsoft Word .doc and .docx filesFree and lightweight Office suite with a familiar ribbon interfaceQuickly update all fields to apply the footer logic across the document
microsoft office alternative - wps office

Frequently Asked Questions

Does this field code work in WPS Writer when the file is saved as .docx?

Yes. WPS Writer supports Word field codes including PAGE, NUMPAGES, and IF. Save the document as .docx or .doc and the footer logic remains intact when reopened in Microsoft Word.

Why does my footer show the field code instead of the footer text?

You are viewing field codes. In WPS Writer, press Alt+F9 to toggle between field-code view and the result view, then press Ctrl+A and F9 to update the field.

Can I hide the footer on a different page, such as the first page only?

Yes. Change the condition to { IF { PAGE } > 1 "Custom Footer" } to hide the footer on page 1, or use section breaks and separate footers for more complex page rules.

How do I insert the curly field braces without typing them?

Place the cursor in the footer and press Ctrl+F9 to create a pair of field braces. Typing regular { } on the keyboard will not create a working Word field.

Why does the footer still appear on the last page after I edit the document?

The field result may be cached. Select all content with Ctrl+A, press F9 to update fields, and press Alt+F9 to check that the IF condition is still correct.