Creating a simple form

From Apache OpenOffice Wiki
Jump to: navigation, search


This section explains how to create a simple form without any links to a data source or database and without advanced customization.

Create a document

There is nothing special to be done when creating a document to use as a form. Create a new Writer document with File > New > Text document.

Form toolbars

Two toolbars control form creation: Form Controls and Form Design. Select View > Toolbars > Form Controls and View > Toolbars > Form Design to show them both. See Form controls reference for a summary of the tools on these toolbars.

Template:Documentation/Tip

The Form Controls toolbar has a button for each of the most commonly used types of control.

Template:Documentation/Note

The three form design toolbars.

Design Mode

When creating a form, you will want to check that all the parts of the form work correctly. If design mode is off, the form behaves as it would for the end user. Buttons can be pressed, check boxes checked, and list items selected. If design mode is on, clicking on a control item selects it for editing.

Click the Design Mode On/Off button FormDesignOnIcon.pngon the Form Controls toolbar to turn design mode on and off.

Template:Documentation/Tip

Insert form controls

  1. To insert a form control into the document, click the control’s icon to select it. The mouse pointer changes to look like this: FormMousePointer.png
  2. Click in the document where you want the control to appear. (You can move it later.)
  3. Holding the left mouse button down, drag the control to size it.
  4. The control button remains active, so you can insert several controls of the same type without needing to go back to the toolbar.
  5. To change to another tool, click its icon on the toolbar.
  6. To stop inserting controls, click on the Select button SelectIcon.png on the Form Controls toolbar, or click on any of the controls you have just inserted. The mouse pointer changes back to its normal appearance.

Template:Documentation/Tip

Template:Documentation/Note

Configure controls

Having inserted the controls, you need to configure them to look and behave as you want. Right-click on a form control within your document and select Control from the pop-up menu.

The Form Control Properties dialog box has three pages: General, Data and Events. For simple forms, only the General page is of any interest. On this page you can set the look and feel of the control.

Control Properties dialog box.

Some controls have other useful options:

  • Some controls have visible labels, such as Push Button and Option Button. The label text can be set.
  • The List Box contains a list of options to choose from. Set these in the List entries box.

Template:Documentation/Tip

Using the form

To use the form, leave design mode by clicking the Design Mode On/Off button FormDesignOffIcon.png.

A typical way to use a form is:

  1. You design the form, then save it when you are happy with it.
  2. You send the form to others (for example, by email).
  3. They fill in the form, save it and send it back to you.
  4. You open the form and see what their answers are.

Template:Documentation/Tip


Content on this page is licensed under the Creative Common Attribution 3.0 license (CC-BY).
Personal tools