Please support us!

ya2mx‖Functions

X6H7i‖

UigbK‖Depending on the field type that you select, you can assign conditions to certain functions. For example, you can define a field that executes a macro when you click the field in the document, or a condition that, when met, hides a field. You can also define placeholder fields that insert text, tables, frames, images and other objects into your document when needed.

To access this command...

Choose Insert - Field - More Fields - Functions tab


vXJzx‖

sBMhB‖Type

QZCqi‖Lists the available field types.

SRfFS‖Type

Ro3wx‖Meaning

yQjB9‖Conditional text

VmVAj‖Inserts text if a certain condition is met. For example, enter "sun eq 1" in the Condition box, and enter the text to insert when the variable "sun" equals "1" in the Then box. Optionally, enter the text to display when this condition is not met in the Else box. To define the variable "sun", click the Variables tab, select Set variable, type "sun" in the Name box, and its value in the Value box.

UzeYZ‖Input list

U6HBq‖Inserts a text field that displays one item from a list. You can add, edit, and remove items, and change their order in the list. Click an Input list field in your document or press +Shift+F9 to display the Choose Item dialog.

Bsz3R‖Input field

6MCzB‖Inserts a text field that opens when clicked in the document so the displayed text can be edited.

fKEyC‖Execute macro

DDdks‖Inserts a text field that runs a macro when clicked in the document. To assign a macro to the field, click the Macro button.

yqa9m‖Placeholder

hMzWe‖Inserts a placeholder field in the document, for example, for graphics. When you click a placeholder field in the document, you are prompted to insert the missing item.

CyoSC‖Hidden text

rcKd7‖Inserts a text field that is hidden when the specified condition is met. To use this function, choose - LibreOfficeDev Writer - View and clear the Hidden text check box.

BMoMs‖Hidden Paragraph

6J5oG‖Hides a paragraph when the specified condition is met. To use this function, choose - LibreOfficeDev Writer - View and clear the Hidden paragraphs check box.

EqDbf‖Combine characters

BnJv9‖Combines up to 6 characters, so that they behave as a single character. Available only when Asian language support is enabled.


Note Icon

sFbmb‖The following fields can be inserted only if the corresponding field type is selected in the Type list.


3KLNk‖Format

VEG7w‖Used only for Placeholder function fields, where it specifies the object type that the placeholder represents.

dHRZG‖Condition

BJMdk‖For fields linked to a condition, enter the criteria here.

BwPbJ‖Then, Else

nWNqP‖Specifies the text to display in the Then box when the condition is met, and the text to display in the Else box when the condition is not met.

vA4qz‖You can also insert database fields in the Then and Else boxes using the format "databasename.tablename.fieldname".

Note Icon

xDAEQ‖If the table or field name does not exist in a database, nothing is inserted.


Note Icon

LyPwp‖If quotes are included in "databasename.tablename.fieldname", the expression is inserted as text.


Yt9YV‖Reference

MS9f9‖Specifies the text to display in the field. For a placeholder field, specifies the text to display as a help tip when the mouse pointer rests over the field.

SXZpH‖Format

BDhNP‖Lists the available macros to run when the field is clicked.

DVBiB‖Macro name

6fLTW‖Displays the name of the selected macro.

D7DBC‖Placeholder

P7cCC‖Specify the text to appear in the placeholder field.

FCAcm‖Hidden text

ADi37‖Specify the text to hide if a condition is met.

Dy6nr‖Characters

BwEwg‖Specify the characters to combine, up to a maximum of 6 characters. This option is only available for the Combine characters field type.

Ai2hU‖Value

dDVzN‖Specify a value for the selected field.

ND3xr‖Macro

miLJw‖Opens the Macro Selector dialog to choose the macro that runs when selected field is clicked in the document. This button is only available for the Execute macro function field.

CB3DA‖The following controls are displayed for Input list fields:

Hyp5X‖Item

Quiiv‖Enter a new item.

KUsBa‖Add

rFAoH‖Adds the item from the Item box to the list.

ZkhHj‖Items on list

kkZWu‖Lists the items. The topmost item is shown in the document.

8CKY4‖Remove

ntJZC‖Removes the selected item from the list.

LUZ9B‖Move Up

AyxCU‖Moves the selected item up in the list.

P4c6b‖Move Down

RVPyR‖Moves the selected item down in the list.

sKtnG‖Name

AC47J‖Enter a unique name for the Input list.

DEN3m‖Choose Item

ibtFR‖This dialog opens when an Input list field is clicked in the document.

3BXJ8‖Choose the item to display in the document, then click OK.

gSB4M‖Edit

ygrqG‖Opens the Edit Fields: Functions dialog to edit the Input list.

AuSqX‖Next

YEYCb‖Closes the current Input list and displays the next one, if available. This button appears when the Choose Item dialog is opened with +Shift+F9.