How to Limit Text Length in a Fixed-Height Word Table Cell
Question details
The user needs to restrict the maximum number of characters that can be entered into a Word table cell that has a fixed height, preventing the text from overflowing or altering the cell dimensions.

- Product
- Microsoft Word / WPS Writer
- Device & OS
- not provided
- Scenario
- Creating standardized forms or restricted document templates where the layout dictates that table cells must maintain an exact, fixed height regardless of user input.
- Observed behavior
- Without restrictions, users can type unlimited text, causing the text to either overflow invisibly or force the fixed-height table cell to expand and break the document layout.
Ensure the Developer tab is enabled on your word processor's ribbon, as you will need to access the legacy form controls to configure exact character limits.
Use Legacy Form Fields to Restrict Character Length
Inserting a legacy text form field allows you to define an exact maximum character count, which is the most effective native method to prevent text from overflowing a fixed-height cell.
By configuring a legacy text form field, you force the document to stop accepting input once the user reaches the defined limit. It is highly recommended to avoid mixing these legacy form fields with newer content controls in the same form, as this can cause document protection conflicts or unpredictable behavior.
Click inside the specific fixed-height table cell where you want to restrict the text length.
Navigate to the Developer tab on the ribbon. Click the 'Legacy Tools' briefcase icon and select the 'Text Form Field' icon (often represented by an 'ab' symbol) to insert it into the cell.
Double-click the newly inserted text form field in your document to open the 'Text Form Field Options' dialog box.
Locate the 'Maximum length' setting. Change the value from 'Unlimited' to the specific number of characters you want to allow, then click OK.
To enforce the limit, go to the Developer tab or Review tab, select 'Restrict Editing', check the box for 'Allow only this type of editing in the document', choose 'Filling in forms' from the dropdown, and click 'Yes, Start Enforcing Protection'.

Set Text Limits in Tables Seamlessly with WPS Writer
WPS Writer provides comprehensive support for legacy form fields and document protection, allowing you to easily create robust forms with restricted text lengths in fixed-height table cells.
- 1. Open your document: Launch WPS Writer and open the document containing your fixed-height table.
- 2. Insert Form Field: Go to the Insert or Developer tab, place your cursor in the target cell, and click on 'Form Fields' followed by 'Text Form Field'.
- 3. Set Character Limit: Double-click the inserted field, enter a specific number in the 'Maximum length' box within the options dialog, and confirm.
- 4. Protect Form: Go to the Review tab, click 'Restrict Editing', select 'Filling in forms', and set a password to activate the character limit.

Frequently Asked Questions
Why does my table cell keep expanding when I type?
By default, table cells automatically expand to fit the text you type. To stop this, right-click the table, select 'Table Properties', go to the 'Row' tab, check 'Specify height', and set the row height rule to 'Exactly' instead of 'At least'.
Can I limit text length using standard content controls instead of legacy tools?
Standard Rich Text or Plain Text content controls do not have a built-in 'Maximum length' property. You must use legacy text form fields or rely on custom VBA macros to enforce strict character limits.
How do I show the Developer tab to insert form fields?
Right-click anywhere on the main ribbon and select 'Customize the Ribbon'. In the right-hand list of main tabs, check the box next to 'Developer' and click OK to make it visible.
Why can't I edit the rest of my document after restricting it to 'Filling in forms'?
When you protect a document for 'Filling in forms', only the designated form fields can be edited. To modify regular text, you must stop the document protection from the Restrict Editing pane.




