University of Essex Homepage Computing Service - Go to Home Page
. . . .
CONTENTS A-Z   |   SEARCH   |   CHANGE YOUR PASSWORD  |  ANNOUNCEMENTS  |  STATUS MESSAGES
. . . .

HOW TO CREATE FORMS

USING WORD FOR WINDOWS 6.0

CONTENTS

WORD already provides preformatted templates for common business/commercial forms - these are located in the Templates sub-directory within the Winword sub-directory and can be accessed by choosing the New command in the FILE menu. However, WORD's Form Field commands (located in the INSERT menu) allow the creation of customised form templates and furthermore, because the newly created form templates can be protected, users cannot accidentally change the format of the form template as they input their data.

STEPS TO CREATING AN ON-LINE FORM

  1. It is important that you create a new template for your form so that global macros and AutoText entries (usually stored in NORMAL.DOT) are made available. NOTE: Any macros or AutoText entries which you create for the form must also be stored with the form template.

  2. Choose the FILE-New command; your form template will be based upon the Normal template for documents but under New select the Template option and then OK.

  3. Create the layout of the form on the template document - see Choosing The Layout For Your Form

  4. Position the insertion point where you want users to type or select information and then choose the INSERT-Form Field command.

  5. Under Type select the type of form field you require. Use the Options button to specify the properties of the form field, and then choose OK.

  6. Repeat steps 4 and 5 for every form field you wish to insert.

  7. NOTE: You can also choose form field options by clicking the appropriate buttons on the Forms toolbar (to display this choose the VIEW-Toolbars command).

  8. Choose the command TOOLS-Protect Document, and under Protect Document For choose the Forms option - WORD will protect your document from changes users may make and allows users to input data only in the form fields; type a password if this is also required.

  9. Use the FILE-Save As command to save the template (the extension to the filename will be .dot) and close it. The template will join other templates in the default directory for templates, within the Winword sub-directory.

USING FORM FIELDS

Form fields are the locations in an online form where the user fills in information, and these can be inserted in the middle of a text paragraph, in a table cell or in a frame. In a protected form, users can only input information in a form field or sections in which the protection has been removed.

Three categories of form field are provided:

Why use form fields?

NOTE: By default and for easy identification, form fields in an online form are shaded. To turn field shading either on or off, click the Field Shading button on the Forms toolbar.

TEXT FORM FIELDS

There are six different types of form field; to select the most appropriate field (or to modify a text field), you will need to display the Text Form Field Options dialogue box by doing one of the following:

Which text form field do I require?

Depending upon the type of text form field chosen, the default format and custom format options change. The Maximum Length box determines the width of the field in a form. The text form field adjusts to accommodate the input text, up to the maximum number of characters you specify in the Maximum Length box (no more than 255 characters are allowed).

Regular text - use this when the form requires an entry of any type, be it text, numbers or symbols. Under Default Text type in the text that perhaps assumes the response of the user - they will only need to type an entry if they need to change the response. If the Default Text box is left blank, then the field will also be left blank.

Number - use this when the field requires a numeric entry; again a default number can be displayed if required.

Date - use this when a date is required; again you can display a default date in the form field.

Current Date and Current Time - both the current date and current time are supplied by WORD and therefore the default date/time box is unavailable. However chosen formats can be applied to the current date/time and are effected when the insertion point leaves the field.

Calculation - use this when you require a row or column of figures to be added or subjected to some other calculation. WORD uses an =(Formula) field to perform calculations. Type the expression for the calculation in the Expression box.

The chosen formatting for Text, Number and Date form entries only takes effect when the insertion point leaves the field; WORD will also display an error message if the entry within a field is not valid.

Current Date, Current Time and Calculation form fields cannot be edited whilst the form is being filled in, but to update all fields before printing, make sure you have the Update Fields check box selected in the TOOLS-Options-Print tab.

To apply character formatting to a form field

  1. Take off the document protection - TOOLS-Unprotect Document.

  2. Select the form field requiring the formatting.

  3. Choose the FORMAT-Font command and type/select the required character formatting and/or spacing and choose OK.

CHECK BOX FIELDS

Check box form fields prompt the user to provide a 'yes' or 'no' response. You should type a label for the check box in the form, then insert a check box form field next to the label. To set options for the check box (or to modify a check box), you must display the Check Box Form Field Options dialogue box by doing one of the following:

You must decide how large the check box is to be under Check Box Size. Choose Auto if you wish your check box to be the same size as the surrounding text, or the Exactly option to specify an exact size.

The Default Value options determine whether a check box is initially selected or cleared; however to have the check box print as an empty box on a hard copy, select the Not Checked option.

DROP-DOWN FORM FIELDS

Use drop-down form fields when you need to present a list of possibilities from which the user can select the most appropriate item. You may wish to add 'None' to the list of choices.

The item at the top of the list is the default selection, but whichever option is highlighted at the time of printing is the one that appears on the hard copy.

To set options for the check box (or to modify a check box), you must display the Check Box Form Field Options dialogue box by doing one of the following:

To add or delete items in a drop-down list

  1. Double-click the drop-down form field to which you require an item to be added, or from which you require an item to be deleted.

  2. EITHER in the Drop-Down Item box, type the text you want to add to the list (up to 50 characters) and choose the Add button. Repeat steps 1 and 2 for every item you wish to add to the list.

  3. OR in the Items in Drop-Down List, select the item which you want to remove from the list and choose the Remove button. Repeat steps 1 and 3 for every item you wish to remove from the list.

  4. Choose OK.

To change the order of items in the drop-down list

  1. Double-click the drop down form field which you need to modify.

  2. Under Items in Drop-Down List, select the item you wish to move and use the Up Arrow or Down Arrowbuttons to move the item up or down respectively.

  3. Choose OK.

PROTECTING A FORM

  1. Choose the TOOLS-Protect Document command.

  2. Under Protect Document For choose the Forms option.

  3. Type a password (up to 15 characters) in the Password box if you require this but remember to use the same combination of upper and lower case letters when you come to use the password again. Access to the master form is only allowed for those users who know the password - only they can edit the form or change the protection.

  4. Choose OK. (If you have assigned a password, you will be asked to confirm the password again and to choose OK for a second time.)

  5. When a document is protected the following changes occur to the document:

To remove the protection from the document

To remove the protection from SECTIONS of the document

  1. Choose the TOOLS-Protect Document command.

  2. Select the Forms option, and then choose the Sections button - this is dimmed if your document has not been divided into sections.

  3. Select the check boxes next to the section(s) requiring protection, but clear check boxes next to sections that are to be left unprotected.

  4. Choose OK.

AUTOMATIC MACROS

A macro saved in the form template can run automatically when the insertion point either enters or exits a form field.

To assign a macro to a form field, have the appropriate form field dialogue box displayed and make your choice under Run Macro On - select a macro from the list available.

Why might I want macros?

Macros can be used to perform all sorts of tasks in the form. Specifically an entry macro might be used to display database information from which the user can select appropriate entries; whereas an exit macro could be used to check and validate input data and even activate or deactivate other fields as a result.

WORD assigns a bookmark name to every form field and this default name appears under Field Settings in the Bookmark box. In performing their tasks, macros have to refer to form fields by their bookmark names; therefore although you can change the bookmark names, you must be careful to choose names which are valid and which are not being used elsewhere in the form!

Transferring macros from Normal.dot to the form template

Use the TOOLS-Macro command, and use the Organiser to transfer macros from the Normal.dot template to the form template. Only then will the macros become available when a user is attempting to complete the on-line form on a different machine.

HELP MESSAGES FOR FORM FIELDS

  1. Double-click the form field to which you want to add (or modify) Help text.

  2. Choose the Add Help Text button.

  3. Select the Status Bar tab to display the help text in the Status Bar, or select the Help Key (F1) tab to display the help message on pressing the F1 key.

  4. Do one of the following:

  5. EITHER select the Type Your Own option button and then type the help text which can be a maximum of 255 characters.

  6. OR select the AutoText button if you require an AutoText entry.

  7. OR select the None option to turn off the help message display.

  8. Choose OK.

FILLING-IN AN ON-LINE FORM

As soon as you protect the form, the behaviour of certain keys changes such that users can move the insertion point from field to field.

  1. Choose the FILE-New command (do not click the New icon on the Toolbar otherwise the Template dialogue box is not displayed).

  2. Under Template select the form template you require and choose OK.

  3. The following methods explain how you can move amongst the fill-in form fields.

Enter data in a field and move to the next field	TAB or ENTER or Down Arrow
Move to a previous field				SHIFT + TAB or Up Arrow
Display items in a drop-down field			F4 or ALT + Down Arrow
Move to an item in a drop-down list			Up Arrow or Down Arrow
Select or clear a check box				SPACEBAR or X
Display help text for a form field			F1
Insert a tab character in a form field			CTRL + TAB

SAVING AND PRINTING

Users can save and print as they would any document. However, users have the choice of saving and printing the form AND their entries (by choosing the appropriate commands in the file menu) or saving and printing only their text entries.

To save and print on-line data only

  1. Choose the TOOLS-Options command.

  2. Select the Save tab or the Print tab.

  3. To save select the Save Data Only For Formscheck box.

  4. To print select the Print Data Only For Formscheck box.

  5. Choose OK.

CHOOSING THE LAYOUT FOR YOUR FORM

Perhaps the most difficult part of designing a form is to plan the grid which will eventually hold the input information in the most coherent way. Tables are by the far the most popular means to an end; you can use a single table for the entire form, merging and resizing cells where necessary to produce areas of differing height, or you can several tables if different parts of your form demand different layouts. Different tables can be separated by a blank paragraph (or some other measurement as defined in the FORMAT-Paragraph-Spacing Before/After dialogue box), or they may lend themselves quite easily to being joined. Borders and shading effects can then be applied selectively to create the required layout.

When a table is not the answer you could consider creating frames around form fields, text and graphics to position them on the page. (You can even enclose a table within a frame and control its position.)

If your form contains several graphics and scrolling is becoming difficult, then choose the TOOLS-Options command, select the View tab and select the Picture Placeholderscheck box. Graphics appear as boxes on the screen, but are printed correctly.

. . . .