Creating Forms in Microsoft Word 2003

Introduction

A form is a special type of document in which the user can only type within certain areas. The remainder of the document is protected and cannot be modified in any way. This is precisely what is required when you want someone to fill in a questionnaire, for example. Whether the form is filled in online or printed on paper, you can arrange it so that the layout cannot be altered.

When completed online, forms allow the user to move directly between the answer boxes using the Tab key. As well as being able to type in their answers, they can also click on check boxes or select from pre-set answers provided by a drop-down list. You can also check the validity of answers and can run a macro (eg to give additional instructions) on entering a box or on leaving it.

Creating a Form

Start your form on a new blank document:

1. Start up Microsoft Word or, if Word is already running, click on the [New] toolbar button

2. Type in a main heading for your form - eg Job Application

3. Using the [Style] button, change the style to Heading 1 and [Center] it if you prefer

4. Press <Enter> twice then type the instructions for completing the form - eg Please fill in the form below, clicking on the option boxes or using the drop-down lists where these are provided. (press <Enter> twice)

5. Display the Forms toolbar by opening the View menu, selecting Toolbars then Forms

The Forms Toolbar is the key to producing a form. The three buttons on the left allow you to add text boxes, check boxes and drop-down lists boxes to your document. Try these out next:

6. Before you start, click once on the Ruler at the 3.5cm mark to set a left tab

7. Type your first question (eg Name:) then press <Tab>

8. Now click on the first button on the Forms toolbar ([Text Form Field]) - a grey box will appear ready for the user to type in his/her own name

9. Press <Enter> twice then repeat steps 7 and 8 for the second question (eg Address:)

10. Repeat step 9 for the third question (eg Date of Birth:)

Next, try adding check boxes (the second button on the Forms toolbar):

11. Press <Enter> twice then type the fourth question (eg Gender:)

12. Press <Tab> then type Male followed by three spaces

13. Click on [Check Box Form Field] (the second button) - a small grey box appears

14. Press five spaces then type Female followed by three spaces

15. Repeat step 13 for a second check box

Finally, add a drop-down list box (the third button on the Forms toolbar):

16. Press <Enter> twice and type the fifth question (eg Nationality:)

17. Press <Tab> then click on [Drop-Down Form Field] (third button) - another box appears

Note: Drop-down lists are only of use on a form which is being filled in online.

Setting Values for a Drop-Down List

To set the values you want to appear in the drop-down field:

1. Make sure the current typing position is against the drop-down box (it should already be so)

2. Click on [Form Field Options] (the fourth button on the toolbar) - a dialog box appears:

3. Type in the first Drop-down item: (eg British) - press <Enter> or click on [Add►►]

4. Repeat step 3 for the second list item - eg European Community

5. Repeat step 3 for the third list item - eg Other

Note that you can amend the list order by first selecting a list item and then using the Move arrows. A selected item can also be deleted from the list using the [Remove] button.

6. Click on [Add Help Text...] - another dialog box appears:

7. Select the option Type your own: then type the following message in the box provided: Click on the list arrow then select your answer from those provided.

8. Click on [OK] to close the dialog box

9. Finally, make sure that the Drop-down enabled check box is ticked under Field settings then press <Enter> or click on [OK]

You have now created your drop-down list. Anyone filling out the form online must select from this list - they cannot type in another value. The help message will be displayed on the Status Line.

Tip: The first item in a drop-down list appears as the default value. If you want to display an empty box, create an extra blank list item as the first entry in the list. You must type at least one character to create the list item (eg a space). Use several spaces to widen the box.

Turning Off Shading and Adding Formatting

Currently the boxes are all shaded grey. If the form is being filled in online then the shading is unnecessary; even for a printed form, it's better to provide an outlined box. It's very easy to turn off the shading:

1. Click on the [Form Field Shading] button - the already highlighted one on the Forms toolbar

The grey shading should now have disappeared. To turn it on again (if you prefer that) simply click on the [Form Field Shading] a second time.

To add a format to an answer field:

2. Select the form field to be formatted then apply the formatting - eg click on the [Italic] button to make the Nationality drop-down box italic

Other formatting you might want to change includes the font (and font size) and justification (eg in a table, you might want numbers to line up on the right).

Activating the Form

Though you created a drop-down list, the form is not yet activated and so the list items do not show. A form becomes active once it has been protected. You can then only type in the form fields themselves and cannot make any changes to the existing text:

1. Click on the [Protect Form] button on the far right of the Forms toolbar

You should find that the drop-down list arrow now appears.

2. Select a value from the drop-down list then press <Tab>

You'll find you jump straight to the first (Name) question on your form.

3. Fill out the form, pressing <Tab> each time to move between the fields

4. When typing in your Address separate each line by a comma - do not press <Enter>

5. With a check box, either type an x (a <space> unsets it) or click on it using the mouse

6. Having tested out the form, click on the [Protect Form] then [Reset Form Fields] (immediately to the left) buttons - this will clear any entries you have made

7. End by protecting the form again - click on [Protect Form]

8.

Saving the Form as a Template

Forms are usually saved as templates so that each user creates a new document based on the template with all the boxes empty and waiting to be filled in. To create a template:

1. Open the File menu and choose Save As...

2. Type in a File name: - eg Job

3. Change Save as type: to Document Template (*.dot)

4. Press <Enter> or click on [Save]

Note that templates are saved in a special folder under My Documents. When you ask for a new document, Word checks in this folder to see what templates you may have created:

4. Open the File menu and choose New... - the Task Pane appears

5. Under the Templates heading, choose On my computer...

6. Select Job.dot then press <Enter> for [OK] to create a new document based on the template

7. Fill out the form (<Tab> between fields) but note that you cannot edit the existing text

8. When you have finished, [Close] the document - there's no need to Save it

You should now have returned to your template, ready to make further amendments.

Checking Data Entry

You can check for valid data entry in a Text Field and can specify how you want the data to appear on the form. On the current form, for example, you can check that a date is being entered against Date of Birth:

1. First you need to unprotect the form - click on the [Protect Form] button

2. Move the typing position to the Date of Birth: text form field (at 3.5cm) - just click on it

3. Click on the [Form Field Options] button - the fourth on the Forms toolbar

The following window will appear:

4. Using the list arrow attached to Type:, change this option to Date

Note the other available types - you can restrict entry to numbers, for example, or can automatically set this to pick up the current date or time.

5. Using the list arrow attached to Date format:, change this option to d MMMM yyyy

6. Press <Enter> or click on [OK] to close the Text Field Options window

This will automatically convert any date entered into a format showing the month and year in full (eg 25 January 2003).

7. Click on the [Protect Form] button then press <Ctrl s> to save the changes to the template

8. Open the File menu and choose New...

9. Click on the link to the Job.dot template in the Task Pane (under Recently used templates)

10. Try typing help against Date of Birth then press <Tab> - an error message should appear

11. Press <Enter> to clear the message then type in a date in an abbreviated form (eg 12/5/82) then press <Tab> - it should be converted to the long format (ie 12 May 1982)

Using a Table on a Form

Using tabs to line up the boxes on a form works well, except where the answer stretches over more than a single line. To see what happens:

1. Move to the Address field and type in your address - press <Enter> at the end of each line

You will find that the second line begins on the far left of the form. To overcome this a table can be used. Some people always use a table to lay out their forms and both the [Draw Table] and [Insert Table] buttons are provided on the Forms toolbar. It's relatively simple to change the current tab-delimited form into a table; there's no need to start again from scratch.

2. First, [Close] the current document (there's no need to Save it) to return to your template

3. Click on the [Protect Form] button to unlock the form

4. Select the questions (drag through them from the Name heading to the end of the form)

5. Open the Table menu and choose Convert then Text to Table...

6. Under Separate text at choose the option Tabs

7. Check that the Number of columns: (under Table size) is set to 2

8. Press <Enter> or click on [OK]

9. With the table still selected, click on the list arrow attached to the [Borders] button on the Formatting (lower main) toolbar and choose [No Border] (second icon, bottom row)

10. Click anywhere within the table to release the selection highlighting

Having removed all the borders from the form, you might want to reinstate some - especially if the form is to be printed out on paper. First, it's a good idea to display the gridlines and set the required box width.

11. Open the Table menu and select Show Gridlines

12. Click on the Name Text Box field at 3.5cm then open the Table menu and choose Select then Cell

13. Using the mouse, drag the right border in to the required width (eg to 7 cm)

14. Click on the [Borders] button list arrow and choose [Outside Border] (first icon, top row)

15. Repeat steps 12 to 14 for the Address and Date of Birth answer boxes

Once you have set up the answer box borders, you can remove the table gridlines:

16. Open the Table menu and select Hide Gridlines

17. Click on the [Protect Form] button then press <Ctrl s> to save your template

18. Finally, create a new document based on the template and test out the new layout

You will find when you enter your Address the box expands with each line under the previous one. The same would happen with any of the other text boxes if someone accidentally presses <Enter> instead of <Tab>.

19. [Close] your test document (there's no need to save it) and return to your template

Fixing the Size of Boxes on a Form

There's nothing more frustrating with online forms than the boxes growing in size as you type. The form then no longer fits correctly on paper if it is printed out.

The problem is usually caused by the creator of the form pressing the Enter key to define the height of the box. They should have used the following method instead:

1. Click on the [Protect Form] button to unlock your form template

2. Click on the Address answer cell

3. Open the Table menu, select Table Properties... then click on the Row tab

The following window will appear:

4. Under Size turn on Specify height: and set it to 2 cm

5. Change Row height is: to Exactly

6. Press <Enter> or click on [OK]

You have now fixed the size of the row. Use the alternative Row height is: setting of At least if you want a box with a minimum size. When printed on paper this will be of a fixed size, but when used online, it can expand if necessary. Ideally you should fix the row height of all the rows in the table to stop them growing by accident - do so for practice, if you like.

7. Click on the [Protect Form] button then press <Ctrl s> to save the template

8. Create a new document based on the template and test out the new Address box

9. Finally, [Close] your test document (don't save it) and return to your template

Calculating Values on a Form

Forms are often used for submitting expenses. It's very easy to perform simple calculations on data entered into the form:

1. Click on the [Protect Form] button to unlock your form template

2. Click to the right of the Nationality: drop-down field, then press <Tab> for a new row