Form Controls

The Form Controls toolbar contains tools that you need to create an interactive form. You can use the toolbar to add controls to a form in a text, spreadsheet, presentation, or HTML document, for example a button that runs a macro.

Selle käsu kasutamiseks...

Vali Vaade - Tööriistaribad - Vormi juhtelemendid.

Icon on the Insert toolbar (you may need to enable this initially invisible icon):

Ikoon

Form Controls


Märkuse ikoon

XML-vormidokumendid (XForms) kasutavad samu juhtelemente.


To create a form, open a document and use the Form Controls toolbar to add and define the form controls. If you want, you can also link the form to a database, so that you can use the controls to manipulate a database.

When you create a form in an HTML document, you can use the form to send data over the Internet.

Märkuse ikoon

LibreOffice only exports the form properties that are supported by the HTML version that you export to. To specify the HTML version, choose - Load/Save - HTML Compatibility.


Juhtelemendi lisamiseks dokumendile

  1. On the Form Controls toolbar, click the icon of the control that you want to add.

  2. Juhtelemendi loomiseks vea dokumendis hiirega selle piirjooned.

    Ruudukujulise juhtvälja loomiseks tuleb vedamise ajal all hoida klahvi Shift.

Nõuande ikoon

To add a field from the field list of a table or query to a form, drag a cell into the form. In a text document, you can also drag a column header to add a field to a form. To include a label for the field, hold down the +Shift key down when you drag a column head.


Juhtelemendi muutmine

  1. Right-click the control and choose Control. A dialog opens where you can define the properties of the control.

  2. To specify a accelerator key for a control, add a tilde (~) in front of the character in the label for the control.

  3. You can drag and drop controls from one document to another document. You can also copy and paste controls between documents. When you insert a control from another document, LibreOffice analyzes the data source, content type, and content properties of the control so that the control fits the logical structure in the target document. For example, a control that displays contents from an address book continues to display the same contents after you copy the control to a different document. You can view these properties on the Data tab page of the Form properties dialog.

Select

Ikoon

This icon switches the mouse pointer to the select mode, or deactivates this mode. The select mode is used to select the controls of the current form.

Design Mode On/Off

Toggles the Design mode on or off. This function is used to switch quickly between Design and User mode. Activate to edit the form controls, deactivate to use the form controls.

Ikoon

Koostamisrežiim sees/väljas

Control Properties

Opens a dialog for editing the properties of a selected control.

Ikoon

Juhtelement

Form Properties

In this dialog you can specify, among others, the data source and the events for the whole form.

Ikoon

Vorm

Check Box

Ikoon

Creates a check box. Check boxes allow you to activate or deactivate a function in a form.

Text Box

Ikoon

Creates a text box. Text boxes are fields in which the user can enter text. In a form, text boxes display data or allow for new data input.

Formatted Field

Ikoon

Creates a formatted field. A formatted field is a text box in which you can define how the inputs and outputs are formatted, and which limiting values apply.

A formatted field has special control properties (choose Format - Control).

Push Button

Ikoon

Creates a push button. This function can be used to execute a command for a defined event, such as a mouse click.

You can apply text and graphics to these buttons.

Option Button

Ikoon

Creates an option button. Option buttons enable the user to choose one of several options. Option buttons with the same functionality are given the same name (Nameproperty). Normally, they are given a group box.

List Box

Ikoon

Creates a list box. A list box lets users select an entry from a list. If the form is linked to a database and the database connection is active, the List Box Wizard will automatically appear after the list box is inserted in the document. This wizard helps you create the list box.

Combo Box

Ikoon

Creates a combo box. A combo box is a single-line list box with a drop-down list from which users choose an option. You can assign the "read-only" property to the combo box so that users cannot enter other entries than those found in the list. If the form is bound to a database and the database connection is active, the Combo Box Wizard will automatically appear after you insert the combo box in the document.

Label Field

Ikoon

Creates a field for displaying text. These labels are only for displaying predefined text. Entries cannot be made in these fields.

Veel juhtelemente

Avab tööriistariba Veel juhtelemente.

Vormi koostamine

Avab tööriistariba Vormi koostamine.

Nõustajad sees/väljas

Ikoon

Lülitab vormi juhtelementide koostamise nõustajate automaatse ilmumise sisse või välja.

Need nõustajad aitavad kirjeldada loendibokside, tabelite ja teiste juhtelementide omadusi.

Context Menu Commands