MSBA-174 · Lesson 10 of 12 · 23 min

Fields and form controls

▶ Video coming soon A video version of this lesson is on the way.

In lesson 1 Dagny replaced the client details in the proposal template with typed placeholders such as "[Client name]". That was better than leaving the last client's name in place, but people still forgot to replace a placeholder, and nothing stopped them typing the event date in four different formats. The next Friday session turned the placeholders into content controls and the template's repeated details into fields. The exam objective is manage forms, fields, and controls: add custom fields, modify field properties, and insert and configure standard content controls.

What a field is

A field is a set of instructions that Word evaluates to produce a result. Page numbers, dates, tables of contents, captions, index entries and merge fields are all fields. Each field has a field code (the instructions) and a result (what you see). Press Alt+F9 to toggle field codes for the whole document, or Shift+F9 for the selected field. Field codes appear between bold braces, such as { PAGE } or { DATE \@ "MMMM d, yyyy" }. The braces are special field characters: to type a field by hand you press Ctrl+F9 to insert them, never the brace keys.

KeyAction
F9Update the selected fields (Ctrl+A, F9 updates most fields in the body)
Alt+F9Show or hide all field codes
Shift+F9Show or hide the code of the selected field
Ctrl+F9Insert empty field braces
F11 / Shift+F11Go to the next or previous field
Ctrl+F11 / Ctrl+Shift+F11Lock or unlock a field so it does not update
Ctrl+Shift+F9Unlink a field, replacing it with its current result as plain text

Fields do not all update by themselves. PAGE, NUMPAGES and fields in headers and footers update as the document is paginated; DATE updates when the document opens or prints; most others, including REF, SEQ, TOC and DOCPROPERTY, update only when you press F9, print (if Update fields before printing is ticked in File > Options > Display) or use a command such as Update Table. File > Options > Advanced > Show document content > Field shading set to Always shades every field grey on screen, which makes templates much easier to check.

Inserting a field

Choose Insert > Text > Quick Parts > Field. The Field dialog lists Categories (Date and Time, Document Automation, Document Information, Equations and Formulas, Index and Tables, Links and References, Mail Merge, Numbering, User Information) and Field names. Choosing a field shows its Field properties and Field options, and the Field Codes button shows the code being built. Preserve formatting during updates adds the \* MERGEFORMAT switch, which keeps formatting you apply to the result.

Some fields the exam may ask for, and Maple & Pine actually used:

FieldResultMaple & Pine use
DATE, CREATEDATE, SAVEDATE, PRINTDATEToday's date, or the date the document was created, saved or printedCREATEDATE on proposals, so the date stays fixed after creation
DOCPROPERTYThe value of a document property, including custom propertiesClient name and event date shown in the header and the body
FILENAME, AUTHOR, TITLEBuilt-in document informationFILENAME \p in the footer of internal drafts
NUMPAGES, PAGEPage counts and numbers"Page 3 of 9" in proposals
REFThe text of a bookmarkRepeating the venue name from the first page
SEQA numbered sequenceCaptions (lesson 8)
IF, FILLIN, ASKConditional or prompted textMail merge rules (lesson 9)

Modifying field properties

To change a field, right-click it and choose Edit Field, which reopens the Field dialog with its current settings, or show the code with Shift+F9 and edit the switches directly, then press F9. Switches change how the result looks.

SwitchPurposeExample
\@Date and time format{ CREATEDATE \@ "d MMMM yyyy" } gives 18 November 2026
\#Number format{ = 1250 \# "#,##0" } gives 1,250
\* Upper, \* Caps, \* LowerCapitalization{ DOCPROPERTY Client \* Caps }
\* Arabic, \* roman, \* ALPHABETICNumber style{ PAGE \* roman } gives iii
\* MERGEFORMATKeep formatting applied to the result after updatesAdded by Preserve formatting during updates
\p (FILENAME)Include the path{ FILENAME \p }

The date format codes are case-sensitive: M is month and m is minute. MMMM gives the full month name, MMM the abbreviation, MM a two-digit number; d and dd give the day without and with a leading zero; yyyy the four-digit year. Maple & Pine's Canadian documents use "d MMMM yyyy" and its US partner's documents "MMMM d, yyyy", so each edition's template carries its own switch.

Custom document properties

The objective add custom fields points to a powerful combination: a custom document property plus a DOCPROPERTY field. Custom properties are stored in the file, can be text, date, number or yes/no, and are created in File > Info > Properties > Advanced Properties > Custom tab. Type a Name, choose a Type, type a Value and click Add. Then insert a DOCPROPERTY field that shows the property wherever it is needed.

Worked problem

One place to type the client name

The client's name appears six times in a proposal: on the cover, in the header, in the greeting, in two clauses and in the signature block. Dagny wants staff to type it once. How does she set this up in the template?

Show solution
  1. In the template, File > Info > Properties > Advanced Properties > Custom tab. Name: ClientName, Type: Text, Value: Client name. Click Add, then OK.
  2. At each of the six places, Insert > Quick Parts > Field > DocProperty > Property: ClientName > OK.
  3. In a proposal, change the property value in Advanced Properties, then press Ctrl+A and F9 (and update headers by double-clicking them or using print preview).
  4. Save the template.

Answer: One custom property drives six DOCPROPERTY fields. Changing it and updating fields changes every occurrence.

Built-in properties such as Title, Company and Subject can be shown more simply with Insert > Quick Parts > Document Property, which inserts a content control bound to the property. Typing in that control changes the property itself, and every other control bound to the same property updates at once, with no F9 needed. For Maple & Pine this was even easier for staff than a custom property, so Dagny used Title for the event name and Company for the client's organization, and kept DOCPROPERTY fields for properties that have no built-in control.

Content controls

Content controls are the modern way to build forms in Word. Each is a container with a defined type, title, tag and behaviour. They are on Developer > Controls, the tab shown in lesson 1.

A proposal form with labelled content controls: a Plain Text control for client name, a Date Picker for event date with a calendar drop-down, a Drop-Down List for package with options Garden Gold, Harbour Classic and Lighthouse Premium, a Check Box for rain plan required, a Combo Box for venue allowing typed entries, a Picture control for a venue photo, and a Repeating Section for add-on services.
Standard content controls in the proposal form. Each has properties set in its Content Control Properties dialog.
ControlUse
Rich TextText that can be formatted and can include tables and pictures
Plain TextUnformatted text; can be set to allow carriage returns
PictureA placeholder for one image
Building Block GalleryA choice from a gallery of building blocks, such as Quick Parts in a category
Check BoxA tick box with configurable checked and unchecked symbols
Combo BoxA list of choices that also allows typing a new value
Drop-Down ListA list of choices only
Date PickerA calendar with a chosen display format, locale and calendar type
Repeating SectionA block that users can duplicate, such as one row per add-on service
Legacy ToolsOlder form fields and ActiveX controls

Configuring content controls

Select a control and click Developer > Controls > Properties to open Content Control Properties. Every control has a Title (shown on the control's tab and read by screen readers), a Tag (an internal name for automation), Show as (Bounding Box, Start/End Tag or None), a Color, an option to Use a style to format text typed into the empty control, and two locking options: Content control cannot be deleted and Contents cannot be edited. Then come type-specific options: the list entries for drop-downs and combo boxes (Add, Modify, Remove, Move Up, Move Down, each with a Display Name and a Value), the display format and locale for the date picker, symbols for the check box, and Remove content control when contents are edited for plain and rich text.

The text shown in an empty control is placeholder text. To change it, turn on Developer > Controls > Design Mode, select the placeholder text inside the control, type the new instruction (for example "Choose the package"), format it if you wish, and turn Design Mode off. Design Mode also shows the control boundaries and tags while you lay out the form.

Worked problem

The package drop-down

Rosalind wants the package chosen from a list of exactly three, with the placeholder "Choose a package", the title "Package" for screen readers, and the control impossible to delete. How does Dagny configure it?

Show solution
  1. Place the insertion point and choose Developer > Controls > Drop-Down List Content Control.
  2. Click Properties. Title: Package; Tag: Package. Tick Content control cannot be deleted.
  3. Under Drop-Down List Properties, remove "Choose an item." and Add three entries: Garden Gold, Harbour Classic, Lighthouse Premium. Click OK.
  4. Turn on Design Mode, replace the placeholder text with "Choose a package", and turn Design Mode off.

Answer: A drop-down list limits the choice to three values, the title makes the control accessible, and locking stops accidental deletion.

Turning controls into a protected form

A form becomes a real form when you protect it. Open Developer > Protect > Restrict Editing (lesson 3), choose Filling in forms under editing restrictions, and click Yes, Start Enforcing Protection. Users can then type only in content controls and legacy form fields, and Tab moves between them. If part of the template must stay freely editable, such as the proposal's description of the day, use No changes (Read only) with that part marked as an exception instead, because exceptions do not apply to Filling in forms. Dagny chose the second approach for proposals and Filling in forms for the event intake form, which is all controls.

Legacy form fields and ActiveX

Legacy Tools (the briefcase icon in the Controls group) offers older legacy form fields: Text Form Field, Check Box Form Field and Drop-Down Form Field, each with its own Options dialog that can run a macro on entry or exit or calculate a value. Legacy form fields work only when the document is protected for Filling in forms. ActiveX controls are for VBA-driven forms and are rarely needed. The exam concentrates on content controls; know that legacy fields exist and where they are.

Content controls or legacy form fields?

FeatureContent controlsLegacy form fields
Work without protectionYesNo; they need Filling in forms protection
Date picker with calendarYesNo
Bind to document propertiesYesNo
Repeating sectionsYesNo
Run a macro on entry or exitOnly through VBA eventsYes, from the field options
Calculations between fieldsNo built-in optionYes, with Calculate on exit
Accessibility title for screen readersYes, the Title propertyHelp text only

For new forms, content controls are the better choice almost every time. Legacy fields survive mainly in older forms that rely on calculations, and you will meet them when updating such forms.

Repeating sections

A Repeating Section content control wraps a block, such as a table row, that users can duplicate. In the proposal, Dagny placed a table row with a drop-down for the service and a plain text control for notes, selected the whole row, and inserted a Repeating Section control around it. Users click the plus sign at the end of the row to add another service. In its properties, Section title names the repeated item and Allow users to add and remove sections controls the plus and minus options.

Worked problem

An intake form that must be complete

The event intake form is all content controls. Rosalind wants people to be able to fill it in but not change the questions, and wants the event date shown as 14 March 2027 style on the Canadian edition. How does Dagny finish it?

Show solution
  1. Select the date picker, open Properties, and set Display the date like this to d MMMM yyyy with the English (Canada) locale.
  2. Give every control a Title and tick Content control cannot be deleted where appropriate.
  3. Developer > Restrict Editing: Filling in forms; Yes, Start Enforcing Protection with a password.
  4. Test: Tab moves between controls and the questions cannot be edited.

Answer: Date format, titles and locks configure the controls; Filling in forms protection turns the document into a form.

Common mistakes

  • MistakeTyping braces from the keyboard to create a field.

    InsteadPress Ctrl+F9 to insert field characters, or use the Field dialog.

  • MistakeUsing m for month in a date switch.

    InsteadUse M for month; m means minutes.

  • MistakeExpecting DOCPROPERTY fields to update by themselves.

    InsteadUpdate them with F9, or use Document Property content controls that update instantly.

  • MistakeLeaving content controls without titles.

    InsteadGive every control a Title so screen readers can announce it.

  • MistakeUsing Filling in forms when some areas must stay freely editable.

    InsteadUse Read only with exceptions for those areas.

Summary and key terms

  • Fields have codes and results; Alt+F9, Shift+F9, F9, Ctrl+F9 and Ctrl+Shift+F9 show, update, insert and unlink them.
  • Insert > Quick Parts > Field builds fields; Edit Field and switches such as \@, \# and \* change their format.
  • Custom properties (Advanced Properties > Custom) plus DOCPROPERTY fields put one value in many places.
  • Content controls on the Developer tab include rich and plain text, picture, check box, combo box, drop-down list, date picker, building block gallery and repeating section.
  • Content Control Properties set title, tag, locking and list entries; Design Mode edits placeholder text; Restrict Editing makes a protected form.
Field code
The instructions of a field, shown between field braces.
Switch
Part of a field code that changes the format of the result.
Custom document property
A named value stored in a document's properties.
DOCPROPERTY field
A field that displays the value of a document property.
Content control
A typed container for form input, such as a drop-down list or date picker.
Design Mode
A Developer tab mode for editing content control placeholder text and layout.

Practice problems

Work each problem on paper first, then reveal the answer to check.

  1. Which key combination shows all field codes?

    Show answer

    Alt+F9.

  2. How do you create a custom document property?

    Show answer

    File > Info > Properties > Advanced Properties > Custom tab: name, type, value, Add.

  3. Which content control allows choosing from a list or typing a new value?

    Show answer

    Combo Box.

  4. How do you change a content control's placeholder text?

    Show answer

    Turn on Design Mode, edit the text inside the control, then turn Design Mode off.

Lesson quiz · 5 questions

Score 60% or more to complete this lesson.

Take the quiz