
Tips.Net > WordTips Home > Editing > Forms > Working with Form Fields
Summary: Word provides a set of tools that you can use to easily create data entry forms. These tools allow you to insert form fields and modify the properties of the fields so that they do exactly what you want. This tip explains how to enter and modify form fields according to your needs. (This tip works with Microsoft Word 97, Word 2000, Word 2002, and Word 2003.)
The easiest way to insert fields in a form is to use the Forms toolbar. You display this toolbar by choosing the Toolbars option from the View menu, and making sure the Forms check box is selected. There are three types of form fields that you can insert in a document: text, pull-down, and check box. Each of these form fields allows the user of the form to select or enter information of the type that you deem appropriate.
As an example, let's say you are creating an order form, and you need a field where a user can enter the name of the person making the order. Further, you want to allow only up to 25 characters to be entered in the field. To accomplish this, follow these steps:
You can repeat these steps for all the fields in your form. The only difference would be the type of field entered (which should be appropriate to the type of information you want entered) and the options you set for each field.
The trickiest option you can set is the Maximum Length option, which only appears when you are working with text fields. By default, this option is set to Unlimited, which means the user can enter any amount of information desired. If the information being entered exceeds the right margin of your document, the field height increases and the text entry continues on the next line. If you don't want this effect in your form, then the only way around it is to set some maximum length for the field. For instance, if you don't want your field to wrap to the next line, then you need to set a maximum length which is guaranteed to fit on a single line. Calculating such a length can be difficult, particularly if you are using a proportional font. For this reason, some people like to set the font of their fields to a monospace font (such as Courier) which makes calculating field lengths easier.
One way around the potential "overrun" problem is to create a table to contain your form fields. The advantage to this is that you can define the width and height of every cell in your table, which limits the vertical movement of text fields if they should be too long. The disadvantage is that some information is not readily displayed in tabular format, and if the entered text is too long, it is not all displayed on the screen or printout. (If the text overruns the size of a static table cell, the additional information is suppressed.
As you set the options for your various fields, notice that you can also define macros which can be executed when the field is entered (first selected) and when it is exited. These allow you to process the information provided in the field.
When a form is being used, the information entered into a field is assigned to a bookmark name. This name is specified in the Options dialog box for each field. Through the use of other bookmark-related fields, you can thus reference field contents elsewhere in your document.
Tip #1011 applies to Microsoft Word versions: 97 2000 2002 2003
Save Time! WordTips has been published weekly since early 1997. Past issues are available in convenient WordTips archives. Have your own enhanced archive of WordTips at your fingertips, available to use at any time!
Check out WordTips Archives today!
Uncover how you can master the full potential of printing your documents. Everything you wanted to know about printing and printers, using Word. (more information...)
Ask a Word Question
Make a Comment
Beauty Tips
Bugs and Pests Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Money Tips
Organizing Tips
Pet Tips
Word2007 Tips
WordTips