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:
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
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.
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:
Note
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.
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:
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.
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:
Note
Note
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:
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.
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:
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:
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.
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:
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.
Note
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:
Figure 36-13. The Drop-Down Form Field Options dialog box is where you'll enter the items for the drop-down list.