Entering Form Fields

3 4

Once you have all the basic text and design for your form in place, you can add the features that make it truly interactive: the form fields. Word enables you to enter three different types of fields to your forms:

  • Text fields enable the user to type text, numbers, symbols, or perform calculations in text-entry boxes. Use this type of field when you're asking an open-ended question, when users are asked to provide comments or suggestions, or when you want to provide the flexibility for user-controlled input.
  • Check box fields enable the user to click a box to add a check mark. Use this type of field when there can be only one selected response.
  • Drop-down fields provide a list of options for the user to review. This type of field is also used when there can be only one selected response but the range of options needs to be shown.

The sections that follow go step by step through the process of adding each of these field types and choosing the options related to the type you selected.

Note


The options for adding macros to the various form fields and customizing help to assist users in filling out forms are available in each of the Form Field Options dialog boxes for the various field types. For more information on working with macros and customized help in Word forms, see "Adding Help to Forms," and "Incorporating Form Macros," later in this chapter.

Viewing Fields

In the next section, you'll learn how to add fields to your form. Before you'll be able to see a field the way your users will see it, however, you need to protect the field. Simply click the field and click the Protect Form button on the Forms toolbar. You'll then be able to see a field the way it'll appear to users. (See Figure 36-10.)

figure 36-10. you can view a field you create by clicking the field and clicking the protect form button.

Figure 36-10. You can view a field you create by clicking the field and clicking the Protect Form button.

Inserting a Text Field

It's possible that the text field will be the type of field you use most often. A text field is a basic input tool—it records information you need that only the user can enter. For example, on a service request form, text fields would include the customer name, address, phone, and e-mail information. Another text field would record any comments on the service to be performed.

To add a text field to your form, follow these steps:

  1. Place the insertion point where you want to add the text field.
  2. Click the Text Form Field button on the Forms toolbar. Word inserts the field {FORMTEXT} in your document at the insertion point.

Note


The field codes that Word inserts automatically can't be modified; to change the settings for the inserted field type, use the Form Field Options button on the Forms toolbar.

Selecting Text Field Options

Once the {FORMTEXT} field is placed in your form, you can select the Form Field Options you want to apply to the field. Click the Form Field Options button on the Forms toolbar, and the Text Form Field Options dialog box appears. (See Figure 36-11.)

figure 36-11. you make choices for the text field in the text form field options dialog box.

Figure 36-11. You make choices for the text field in the Text Form Field Options dialog box.

Choosing the Text Form Field Type

In the Text Form Field Options dialog box, you choose the type of text field you want to create, and Word changes the code accordingly. In the Type drop-down list, select one of the following field types:

  • Regular Text form fields include text, numbers, symbols, and spaces.
  • Number form fields accept numbers.
  • Date form fields require dates.
  • Current Date form fields display the current date and cannot be modified by users.
  • Current Time form fields display the current time and cannot be modified by users.
  • Calculation form fields calculate numbers and cannot be modified by users.

Tip - Add default entries for users


You can include a default entry in a text form fields so that your user doesn't have to enter it. Simply add the text you want in the field after creating the text form field. In the Text Form Field Options dialog box, type the text in the Default Text box and select the Fill-In Enabled check box The text you entered in the Default Text box will be displayed in the form until the user clicks in the field and types another entry.

Specifying Field Length

You can control the length of the text form field entry you will allow. If you've asked an open-ended question, perhaps requesting user comments about a new site feature you've added, you can leave a virtually unlimited space for user response. If, on the other hand, you want to limit the response to a few words, you can set the limit of the field length in the Text Form Field Options dialog box. Here are the steps:

  1. Click the text form field code to select it.
  2. Click the Form Field Options button on the Forms toolbar. The Text Form Field Options dialog box appears.

    Note


    In the Maximum Length box, click the up arrow to display the number of characters you want to allow. Or, as an alternative, you can click in the field and type the number. A character can be a text character, a number, or a symbol.

  3. Click OK to close the dialog box and return to the form.

Note


If you want to link the text field to a bookmark you've previously created in your document, you can enter the name of the bookmark in the Bookmark box in the Text Form Field Options dialog box. Simply click in the box and type the bookmark name.

Controlling Text Display

If it matters to you, or to your data management personnel, how data is entered in the forms you create, you can control the capitalization of the text users enter in form fields. You can choose to display entries in all uppercase, lowercase, or in a variety of other displays. To choose the way text is shown, follow these steps:

  1. Click the text form field code to select it.
  2. Click the Form Field Options button on the Forms toolbar. The Text Form Field Options dialog box appears.
  3. Click the Text Format down arrow. Choose from one of the following options:
    • Uppercase formats entries in uppercase letters.
    • Lowercase shows entries in lowercase letters.
    • First capital displays the entry with an initial first letter.
    • Title case treats the entry as though it is a title entry.
  4. Click OK to close the dialog box and return to the form. Word adds the necessary field code so the information entered is displayed as you selected.

Tip - Calculate changes automatically


If you want Word to calculate the fields in your form each time you exit the form, select the Calculate On Exit check box in the Text Form Field Options dialog box and click OK. Each time you exit the form, Word updates the numeric fields and recalculates any equations in the form.

Adding a Check Box Field

If you want to include choices on your form in which users can select more than one option, you can create a list consisting of multiple check boxes. For example, suppose that your IT department is doing a survey to find out how happy the employees are with the technical support services. You might include a question such as the following:

  1. Which of these services are important to you?
    1. Same-day response times
    2. Talking to a tech support person as opposed to an automated system
    3. Being able to get a loaner machine while yours is in the shop

You can turn the list items into check boxes so that users can select all that are important to them. To create a check box field, follow these steps:

  1. Place the insertion point where you want to add the check box field.
  2. Click the Check Box Form Field button on the Forms toolbar. Word inserts a check box symbol at the insertion point and places the code {FORMCHECKBOX} on the form.
  3. Add the check box label by pressing the spacebar and typing the label of your choice.
  4. Repeat as needed to place additional check boxes.

Tip - Display the form field codes


If you want to see which code Word is inserting in your document when you add fields using the Forms toolbar, simply press Alt+F9. The display changes to show the field codes. When you're ready to change the display back, press Alt+F9 again.

Resizing the Check Box

By default, the check box field is created to match the size of surrounding text. If you want the box to stand out, you might want to modify the size of the check box character. To do this, you need to change the Check Box Size option in the Check Box Form Field Options dialog box. Here are the steps:

  1. Double-click the check box, or select it and click the Form Field Options button on the Forms toolbar. The Check Box Form Field Options dialog box appears, as Figure 36-12 shows.

    figure 36-12. the check box form field options dialog box enables you to make choices about the way your check box field will look and act.

    Figure 36-12. The Check Box Form Field Options dialog box enables you to make choices about the way your check box field will look and act.

  2. In the Check Box Size section of the dialog box, click Exactly, and increase or decrease the size value in the text box to match the size you want.
  3. Click OK to save your changes and return to the form.

Note


If you want to lock a check box field so that users can't alter it, select the Check Box Enabled check box in the Check Box Form Field Options dialog box.

Creating a Drop-Down Field

You'll use a drop-down field when you want to provide a list of choices for the user. In the example, you might want to give users the choice of rating the kind of experience they most recently had with tech support. To create a drop-down field, follow these steps:

  1. Place the insertion point where you want to add the field.
  2. Select the Drop-Down Form Field button. Word adds a drop-down field to your form at the insertion point.
  3. Double-click the form field or select it and click Form Field Options on the Forms toolbar to display the Drop-Down Form Field Options dialog box. (See Figure 36-13.)

    figure 36-13. the drop-down form field options dialog box is where you'll enter the items for the drop-down list.

    Figure 36-13. The Drop-Down Form Field Options dialog box is where you'll enter the items for the drop-down list.

  4. Add entries to the drop-down list by typing items in the Drop-Down Item box and clicking Add. The item is added to the list.
  5. Repeat adding items as needed. Click OK to close the dialog box.


Microsoft Word Version 2002 Inside Out
Microsoft Word Version 2002 Inside Out (Inside Out (Microsoft))
ISBN: 0735612781
EAN: 2147483647
Year: 2005
Pages: 337

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net