Input field in word

This entry shows how to create an input form in
MS Word containing several input fields.

The input fields are highlighted in green and
become active as soon as you click on a field.

The input fields are simple text fields,
drop-down selection fields or multi-line comment fields

The inputs can be further processed as
variables in macros and automated.

Inquiries for the entry form under codedocu.de,
Raimund.popp@codedocu.de

The file with the following input field as a template
or example is available for download in the appendix.

Name:

Vorname:

Raimund

Email:

Email eingeben

Land:

Wählen Sie ein Land aus.

Kommentar:

Input
form in Word

Create input fields

Step 1: Menu-> Developer Tools ->
[Controls] -> Text Only Content Control

Step 2: Turn on draft mode

Step
3) Input field-> Properties

Step
4) Enter title, text, field lock

Here first name and first name

Lock: the content control can not be deleted
-> enable

Step
5) Mark text

Then mark text in the field

Step
6) Enter preview text

As default or preview text you can either enter
spaces or enter as logical input text like «please enter first name».

Step 7) Highlight the color

In order to recognize the input fields as an
input form, the fields should be marked in color.

To do this, completely mark the text inside the
input field and highlight it with the color tool as the background color.

Tip: As a field as the tax office with light green.

Step
8) Turn off draft mode

Under Menu-> Developer Tools> Turn Off
Design Mode

Step
9) Check input fields

The input fields now appear as green
placeholders. As soon as you click in a field, the field appears darker and a
frame becomes visible.

Step
10) Check input

If you then enter text with the keyboard, the
green placeholder is replaced and the text box expands as far as the input text
itself is

As you enter text, the field expands

Alternative input fields

1)
As a mail merge field

Advantage: can be connected to a serial letter

Email:

«Email»

«Mergefield» «Name_Seriendruckfeld»

2) Fill-in field

Simple text input to complete. Disadvantage:
can not be automated in macros.

Alter:

55

{ FILLIN  Alter d 55 
* MERGEFORMAT
}


How to Create a Fillable Form in Word

You can use Word to create interactive digital forms that other people can fill out on their computers before printing or sending them back to you. It takes a little preparation but keeps you from having to decipher messy handwriting! Some of the tools you will use when creating a form include:

  • Templates: Forms are normally saved as templates so that they can be used again and again.
  • Content controls: The areas where users input information in a form.
  • Tables: Tables are often used in forms to align text and form fields, and to create borders and boxes.
  • Protection: Users can complete the form fields without being able to change the form’s text and/or design.

Show the Developer Tab

Before you can create a form, you’ll need to turn on the Developer tab to get access to the advanced tools.

  1. Click the File tab.

    Forms

  2. Select Options.

    Forms

    The Word Options window opens.

  3. Click the Customize Ribbon tab on the left.

    The column on the right controls which ribbon tabs are enabled.

  4. Check the Developer check box.
  5. Click OK.

    Forms

The Developer tab now appears on the ribbon. In addition to advanced tools for macro recording, add-ins, and document protection, we now have access to form controls.

Create a Form

Once you’ve enabled the Developer tab, and created the layout and structure of the form, you can start adding form fields to your document with Content Controls.

  1. Place the text cursor where you want to insert the form field.
  2. Click the Developer tab on the ribbon.

    The Controls group contains the different kinds of content controls you can add to a form, as well as the toggle button for Design Mode.

  3. Click the Design Mode button in the controls group.

    While Design Mode is active, controls you insert won’t be active, so clicking a check box to move it around won’t also check it. You can also customize placeholder text for some controls.

    Forms

  4. Click a Content Control buttons to insert the selected type of control.

    The content control is inserted.

    Select a form field and click the Properties button on the ribbon to edit a control’s options. Depending on the type of control you’ve inserted, you can change its appearance, set up the options in a list, or lock the control once edited.

  5. When you’re done, click the Design Mode button again to exit Design Mode.

    Forms

You leave Design Mode, and the content controls that you’ve inserted can now be used.

Types of Form Controls

There are many different types of form controls you can add to a form that will allow people to add different types of responses.

Finalize a Form

When you’re ready to distribute a form so others can fill it out, you can restrict the form so that content controls cannot be removed or changed by those filling it out.

  1. Click the Restrict Editing button on the Developer tab.

    The Restrict Editing pane appears on the right.

  2. Check the Editing restrictions check box.
  3. Click the Editing restriction list arrow.
  4. Select Filling in forms.

    When this option is enabled, the only change that anyone else can make to this document is the filling in of form fields. They won’t be able to move, delete, or edit the fields themselves until protection is turned off.

    Forms

  5. Click the Yes, Start Enforcing Protection button.

    A password is not required to start enforcing protection, but you can add one if you’d like to prevent just anyone from turning this protection off.

  6. Enter a password (optional), then click OK.

    Forms

The document is now restricted, and anyone you send it to will only be able to fill in the forms.


Word Cheat Sheet

FREE Quick Reference

Click to Download

Free to distribute with our compliments; we hope you will consider our paid training.

No, the variables do not have to come from a third party site.

Your question has some ambiguities, but if you have a Word bookmark named «NAME», then

{ IF "{ NAME }" = "Alex" "Hello Alex" "What is your name?" }

would display the text Alex if the bookmark’s value was Alex, and would display What is your name? If it was not Alex. But it would not generate an input box or any other structure that would let you enter a name.

In this case, you could also use

{ IF NAME = "Alex" "Hello Alex" "What is your name?" }

You could also do this

{ IF NAME = Alex "Hello Alex" "What is your name?" }

but be aware that that may not work as you expect if you happen to have something like

{ SET NAME Alex }{ SET Alex Alx }{ IF NAME = Alex "Hello Alex" "What is your name?" }

All the {} pairs have to be the special field code brace pairs that you can insert on Windows Desktop Word using ctrl-F9, on Mac Desktop Word using cmd-F9, or a varietion on those sequences depending on your keyboard and setup.

At the moment you appear to have doubled up whatever type of brace you are using

{ IF "{{name}}" etc.

That won’t work!

The value of the bookmark NAME could come from a number of place. e.g. you might select a piece of text and insert the bookmark «NAME» there, e.g. if I selected piece of text and inserted a bookmark called NAME, the value of NAME would be piece of text. Or you could set the value of NAME using

{ SET NAME "piece of text" }

Or you could use an ASK field like this

{ ASK NAME "What is your name?" }

or a combination of a SET and a FILLIN field (Let’s not go there). You (or the user) has to select all the relevant fields and «update» them (e.g. F9 on Windows Word).

In addition, if your document is a mailmerge main document connected to a data source that has a column called NAME, you may find that the data in that column is used to populate a bookmark in Word called NAME. This dates back to early versions of Word where you referenced a column in the data source using { NAME } rather than { MERGEFIELD NAME }. I think that in recent versions it only applies to data sources that Word opens through its file converters, e.g. if the data source is a Word document or HTML file, not (say) an Excel workbook opened using OLE DB.

And you can of course try to set the name using something like

{ IF "{ NAME }" = "Alex" "Hello Alex" "{ ASK NAME "What is your name?" }" }

but the user would have to execute that IF field twice to see Hello Alex if the value of bookmark NAME was not Alex beforehand. It doesn’t seem like a very good approach. Nor is there a looping construct in Word that would help you there.

When choosing bookmark names,

  • avoid names that are the names of Word field types (such as IF, ASK, FILLIN, SET etc.
  • avoid names that «look like» table cell names (A1, AB1 etc.)

The other possible way to do this would be to use «legacy Form Field codes, and use a Textbox field to enter the name. That type of textbox field also has an associated bookmark name that you can specify in the field’s properties. But to use those legacy form fields, you have to put the whole document into «protected for forms» mode, which means that everything else becomes uneditable.

Word for Microsoft 365 Word for Microsoft 365 for Mac Word 2021 Word 2021 for Mac Word 2019 Word 2019 for Mac Word 2016 Word 2016 for Mac Word 2013 Word 2010 Word for Mac 2011 More…Less

To create a form in Word that others can fill out, start with a template or document and add content controls. Content controls include things like check boxes, text boxes, date pickers, and drop-down lists. If you’re familiar with databases, these content controls can even be linked to data.

Show the Developer tab

If the developer tab isn’t displayed in the ribbon, see Show the Developer tab.

Open a template or a blank document on which to base the form

To save time, start with a form template or start from scratch with a blank template.

  1. Go to File > New.

  2. In Search online templates, type Forms or the type of form you want and press ENTER.

  3. Choose a form template, and then select Create or Download.

  1. Go to File > New.

  2. Select Blank document.

Add content to the form

Go to Developer, and then choose the controls that you want to add to the document or form. To remove a content control, select the control and press Delete. You can set properties on controls once inserted.

Note: You can print a form that was created using content controls, but the boxes around the content controls will not print.

In a rich text content control, users can format text as bold or italic, and they can type multiple paragraphs. If you want to limit what users add, insert the plain text content control.

  1. Click or tap where you want to insert the control.

  2. Select Developer > Rich Text Content Control Rich text control button or Plain Text Content Control Plain text control button.

To set specific properties on the control, see Set or change properties for content controls.

A picture control is often used for templates, but you can also add a picture control to a form.

  1. Click or tap where you want to insert the control.

  2. Select Developer > Picture Content Control Picture control button.

To set specific properties on the control, see Set or change properties for content controls.

Use building block controls when you want people to choose a specific block of text. For example, building block controls are helpful when you need to add different boilerplate text depending on the contract’s specific requirements. You can create rich text content controls for each version of the boilerplate text, and then you can use a building block control as the container for the rich text content controls.

  1. Click or tap where you want to insert the control.

  2. Go to DeveloperBuilding Block Gallery Content Control building block gallery control (or Building Block Content Control).

  3. Select Developer and content controls for the building block.

    Developer tab showing content controls

  1. Click or tap where you want to insert the control.

To set specific properties on the control, see Set or change properties for content controls.

In a combo box, users can select from a list of choices that you provide or they can type in their own information. In a drop-down list, users can only select from the list of choices.

  1. Go to Developer > Combo Box Content Control combo box button or Drop-Down List Content Control List box button.

  2. Select the content control, and then select Properties.

  3. To create a list of choices, select Add under Drop-Down List Properties.

  4. Type a choice in Display Name, such as Yes, No, or Maybe.

    Repeat this step until all of the choices are in the drop-down list.

  5. Fill in any other properties that you want.

    Note: If you select the Contents cannot be edited check box, users won’t be able to click a choice.

  1. Click or tap where you want to insert the date picker control.

  2. Select Developer > Date Picker Content Control Date picker button .

To set specific properties on the control, see Set or change properties for content controls.

  1. Click or tap where you want to insert the check box control.

  2. Select Developer > Check Box Content Control Check box button.

To set specific properties on the control, see Set or change properties for content controls.

Legacy form controls are for compatibility with older versions of Word and consist of legacy form and Active X controls.

  1. Click or tap where you want to insert a legacy control.

  2. Go to Developer > Legacy Forms Legacy control button drop-down.

  3. Select the Legacy Form control or Active X Control that you want to include.

Set or change properties for content controls

Each content control has properties that you can set or change. For example, the Date Picker control offers options for the format you want to use to display the date.

  1. Select the content control that you want to change.

  2. Go to Developer > Properties.

    Controls Properties  button

  3. Change the properties that you want.

Add protection to a form

If you want to limit how much others can edit or format a form, use the Restrict Editing command:

  1. Open the form that you want to lock or protect.

  2. Select Developer > Restrict Editing.

    Restrict editing button

  3. After selecting restrictions, select Yes, Start Enforcing Protection.

    Restrict editing panel 

Advanced Tip:

If you want to protect only parts of the document, separate the document into sections and only protect the sections you want.

To do this, choose Select Sections in the Restrict Editing panel. For more info on sections, see Insert a section break.

Sections selector on Resrict sections panel

Show the Developer tab

If the developer tab isn’t displayed in the ribbon, see Show the Developer tab.

Open a template or use a blank document

To create a form in Word that others can fill out, start with a template or document and add content controls. Content controls include things like check boxes, text boxes, and drop-down lists. If you’re familiar with databases, these content controls can even be linked to data.

  1. Go to File > New from Template.

    New from template option

  2. In Search, type form.

  3. Double-click the template you want to use.

  4. Select File > Save As, and pick a location to save the form.

  5. In Save As, type a file name and then select Save.

  1. Go to File > New Document.

    New document option

  2. Go to File > Save As.

  3. In Save As, type a file name and then select Save.

Add content to the form

Go to Developer, and then choose the controls that you want to add to the document or form. To remove a content control, select the control and press Delete. You can set Options on controls once inserted. From Options, you can add entry and exit macros to run when users interact with the controls, as well as list items for combo boxes, .

  1. In the document, click or tap where you want to add a content control.

  2. On Developer, select Text Box, Check Box, or Combo Box.

    Developer tab with content controls

  3. To set specific properties for the control, select Options, and set .

  4. Repeat steps 1 through 3 for each control that you want to add.

Options let you set common settings, as well as control specific settings. Select a control and then select Options to set up or make changes.

  • Set common properties.

    • Select Macro to Run on lets you choose a recorded or custom macro to run on Entry or Exit from the field.

    • Bookmark Set a unique name or bookmark for each control.

    • Calculate on exit This forces Word to run or refresh any calculations, such as total price when the user exits the field.

    • Add Help Text Give hints or instructions for each field.

    • OK Saves settings and exits the panel.

    • Cancel Forgets changes and exits the panel.

  • Set specific properties for a Text box

    • Type Select form Regular text, Number, Date, Current Date, Current Time, or Calculation.

    • Default text sets optional instructional text that’s displayed in the text box before the user types in the field. Set Text box enabled to allow the user to enter text into the field.

    • Maximum length sets the length of text that a user can enter. The default is Unlimited.

    • Text format can set whether text automatically formats to Uppercase, Lowercase, First capital, or Title case.

    • Text box enabled Lets the user enter text into a field. If there is default text, user text replaces it.

  • Set specific properties for a Check box.

    • Default Value Choose between Not checked or checked as default.

    • Checkbox size Set a size Exactly or Auto to change size as needed.

    • Check box enabled Lets the user check or clear the text box.

  • Set specific properties for a Combo box

    • Drop-down item Type in strings for the list box items. Press + or Enter to add an item to the list.

    • Items in drop-down list Shows your current list. Select an item and use the up or down arrows to change the order, Press to remove a selected item.

    • Drop-down enabled Lets the user open the combo box and make selections.

  1. Go to Developer > Protect Form.

    Protect form button on the Developer tab

    Note: To unprotect the form and continue editing, select Protect Form again.

  2. Save and close the form.

If you want, you can test the form before you distribute it.

  1. Protect the form.

  2. Reopen the form, fill it out as the user would, and then save a copy.

Show the Developer tab

  1. On the right side of the ribbon, select Action pop-up menu, and then select Ribbon Preferences.

  2. Under Customize, select Developer .

Open a template or a document on which to base the form

You can start with a blank document and create your own form. Or, to save time, you can start with a form template.

  1. Go to File > New from Template.

  2. In the left pane, expand Online Templates, and then select Forms.

  3. Double-click the form template that you want to use.

Add content controls to the form

  1. In the document, click where you want to add the control.

  2. On the Developer tab, under Form Controls, select Text Box, Check Box, or Combo Box.

  3. To set specific properties for the control, select Options, and then configure the properties that you want.

    Note: To create a list of drop-down items in a combo box, select the combo box placeholder, click Options, and then add the items that you want to appear in the drop-down list.

  4. Repeat steps 1 through 3 for each control that you want to add.

Add instructional text (optional)

Instructional text (for example, «Type First Name») in a text box can make your form easier to use. By default, no text appears in a text box, but you can add it.

  1. Select the text box control that you want to add instructional text to.

  2. On the Developer tab, under Form Controls, select Options.

  3. In Default Text, type the instructional text.

  4. Make sure that Fill-in enabled is selected, and then select OK.

Protect the form

  1. On the Developer tab, under Form Controls, select Protect Form.

    Note: To unprotect the form and continue editing, click Protect Form again.

  2. Save and close the form.

Test the form (optional)

If you want, you can test the form before you distribute it.

  1. Protect the form.

  2. Reopen the form, fill it out as the user would, and then save a copy.

Creating fillable forms isn’t available in Word for the web.

You can create the form with the desktop version of Word with the instructions in Create a fillable form.

When you save the document and reopen it in Word for the web, you’ll see the changes you made.

Need more help?

Download PC Repair Tool to quickly find & fix Windows errors automatically

In Microsoft Word, you can insert built-in or custom fields into your Word document that may change within your document. In Word, the field feature inserts fields into your document; some fields will be inserted automatically, such as NumPages, NumWords, and Date.

What are Fields in Microsoft Word?

In Microsoft Word, a field is a placeholder for document information that can be changed. Microsoft Word displays the field result instead of the field codes.

How to add Fields to my Document?

There are various types of fields that you can add to your document; some field text will be inserted automatically, and some you have to modify in the dialog box before you add it to the document. In this tutorial, we will discuss how to add fields to your word documents.

To add text fields to your Word document, follow the steps below.

  1. Launch Microsoft Word
  2. Click anywhere on the document
  3. Click the Insert tab
  4. Click the Quick Parts button
  5. Click Field from the drop-down menu
  6. Choose a field name from the field name list.
  7. then, choose an option from the list on the right.
  8. Click OK

Launch Microsoft Word

Click anywhere on the Word document.

On the menu bar, click the Insert tab.

In the Text group, click the Quick Parts button.

Then select Field from the drop-down menu.

A Field dialog box will appear.

Inside the dialog box, there are various fields to choose from in the Field Name list.

Select a field from the Field Name list on the left.

In this tutorial, we chose to select the Date field.

Then, choose a field option from the list on the right.

Depending on the field name selected, the options on the right will change.

Then click OK.

The field is added to the Word document.

If you want to change the format of the field, you cannot change it directly on the Word document; you have to change it within the Field dialog box.

How to insert a Text field in Word

To change the format of the field, right-click the field and select Edit Field.

It will return to the Field dialog box, where you can change the format of the field and then click OK to see the field change.

We hope this tutorial helps you understand; how to insert a text field in Microsoft Word; if you have questions about the tutorial, let us know.

Ezoic

Shantel has studied Data Operations, Records Management, and Computer Information Systems. She is quite proficient in using Office software. Her goal is to become a Database Administrator or a System Administrator.

Понравилась статья? Поделить с друзьями:
  • Index match excel что это
  • Input a word in python
  • Insert group in word
  • Index match excel как пользоваться
  • Inline style word wrap