You have a Word template with form fields such as text boxes, check boxes, or drop-down lists. You want users to fill in those fields without being able to change the surrounding text, layout, or instructions. Word provides a built-in feature called Restrict Editing that locks the document body while keeping form fields editable. This article explains how to apply this restriction to a template, how to set up the form fields correctly, and what to do if the restriction does not work as expected.
Key Takeaways: Locking a Word Template for Form Filling Only
- Developer tab > Restrict Editing > Allow only this type of editing in the document > Filling in forms: Locks all content except form fields so users can only input data.
- Insert form controls via Developer tab > Controls group: Use Legacy Tools (Legacy Forms) for the most reliable restriction behavior in .dot and .dotx templates.
- File > Options > Customize Ribbon > Enable Developer tab: Required to access form controls and the Restrict Editing pane.
How Word Restricts Editing for Form Fields
Word uses a permission-based system called Restrict Editing to block changes to the document structure. When you choose the option “Filling in forms,” Word allows interaction only with form field controls such as text boxes, check boxes, and drop-down lists. All other text, images, tables, and formatting become read-only. This restriction applies regardless of whether the user opens the file as a .dotx template or as a .docx document based on that template.
The feature works by applying an invisible layer of protection that prevents selection, deletion, or modification of any content that is not a form field. Users can tab between fields, type or select values, and save the filled document. They cannot move or resize fields, change the placeholder text, or alter the layout. The restriction is enforced until you turn it off by entering the password you set during configuration.
To use this feature, you must first insert form fields using the Legacy Tools group on the Developer tab. Modern content controls such as the Rich Text Content Control or Plain Text Content Control do not work reliably with the “Filling in forms” restriction. For templates, always use the Legacy Forms controls to ensure the restriction behaves correctly.
Steps to Lock a Template and Allow Form Field Input
- Enable the Developer tab
Open Word. Click File > Options > Customize Ribbon. In the right panel under Main Tabs, check the box next to Developer. Click OK. The Developer tab now appears in the ribbon. - Design the template layout
Create the static text, labels, instructions, and any graphics you want to keep locked. Do not insert form fields yet. Save the file as a Word Template (.dotx) using File > Save As > Browse > Save as type > Word Template. - Insert Legacy Form fields
Go to the Developer tab. In the Controls group, click the Legacy Tools icon. Under Legacy Forms, select the control you need: Text Form Field, Check Box Form Field, or Drop-Down Form Field. Click where you want the field to appear in the document. Repeat for each field. - Set field properties
Right-click a form field and choose Properties. In the dialog, set the default text, maximum length, or drop-down items as needed. For check boxes, set the default state. Click OK. Repeat for all fields. - Protect the document for filling in forms
On the Developer tab, click Restrict Editing. The Restrict Editing pane opens on the right. Under Editing restrictions, check the box “Allow only this type of editing in the document.” From the drop-down list, select “Filling in forms.” Click Yes, Start Enforcing Protection. - Set a password and confirm
In the Start Enforcing Protection dialog, type a password in the password box. Retype it in the Confirm box. Click OK. The document is now protected. Users can only interact with the form fields. - Save the protected template
Press Ctrl+S or click File > Save. The template now opens with editing restrictions active every time a user opens it.
Common Problems When Locking a Template for Form Fields
Form fields are not editable after restriction
You applied the restriction, but when you click a form field, nothing happens. This usually occurs because you used modern content controls instead of Legacy Form fields. Open the template, click Restrict Editing, and click Stop Protection. Delete the content controls. Insert Legacy Form fields from the Developer tab > Legacy Tools > Legacy Forms. Reapply the restriction with “Filling in forms.”
Users can delete or move form fields
If users can select and delete a form field, the restriction is not applied correctly. Open the template and go to Developer > Restrict Editing. Verify that the editing restriction is set to “Filling in forms” and that the protection is enforced with a password. If the restriction is already on, turn it off and reapply it. Also check that the form fields are not inside an unprotected section.
The restriction does not carry over when users save as .docx
When a user opens a .dotx template, Word creates a new .docx document by default. The restriction stays intact because it is part of the document content, not the file extension. If the restriction disappears, the user may have opened the template directly and turned off protection. To prevent this, store the template in a location where users have read-only access, such as a network share with permissions set to read.
Tab order between fields is wrong
Word sets tab order based on the order you inserted the fields. To change the tab order, remove all form fields and reinsert them in the desired sequence. There is no built-in tab order editor for Legacy Form fields. Alternatively, use the SetTabOrder method via VBA, but that requires programming knowledge.
Legacy Form Fields vs Modern Content Controls for Locked Templates
| Item | Legacy Form Fields | Modern Content Controls |
|---|---|---|
| Works with “Filling in forms” restriction | Yes | No |
| Supports text input | Yes | Yes |
| Supports check boxes | Yes | Yes |
| Supports drop-down lists | Yes | Yes |
| Can be tabbed between fields | Yes | Yes |
| Preserves formatting of surrounding text | Yes | Yes |
| Allows date picker or repeating section | No | Yes |
| Recommended for locked form templates | Yes | No |
You can now lock a Word template so that users fill in form fields without editing the rest of the document. Start by designing the template and inserting Legacy Form fields from the Developer tab. Apply the Restrict Editing feature and set the editing type to “Filling in forms” with a password. If users need to remove the restriction later, they must enter the password. For advanced control, explore the Protect Document settings under File > Info > Protect Document, which offers similar restriction options with a different interface.