bottom
Great WordTips!
         
Your e-mail address is safe!
Close Note

Tips.Net > WordTips Home > Editing > Forms > Working with Form Fields

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:

  1. Position the insertion point where you want the field to appear.
  2. Click on the Text Form Field button on the Forms toolbar. A field indicator appears in the document.
  3. Select the form field just entered.
  4. Click on the Form Field Options button on the Forms toolbar. The Text Form Field Options dialog box appears. (Click here to see a related figure.)
  5. Make sure the Type pull-down list is set to Regular Text. (This is the type of information you want to allow in the field.)
  6. Change the Maximum Length option to 25.
  7. Click on OK.

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


Great Idea! Word is a tool to get what you really want—printed output. This means you need to make sure that Word works as well as possible with your printer, whether it is sitting on your desk or in a room down the hall.
 
Check out WordTips: Printing and Printers today!

Helpful Links

Ask a Word Question
Make a Comment

Tips.Net Home
Vital News Home

WordTips FAQ
WordTips Premium

Learn Access Now

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

Advertise on the
WordTips Site

 

Great Info!

Get tips like this every week in WordTips, a free productivity newsletter. Enter your e-mail address and click "Subscribe."
     
(Your e-mail address will never be shared with anyone, ever.)