Please support us!

Document

Fields are used to insert information about the current document, for example file name, template, statistics, user data, date, and time.

To access this command...

Choose Insert - Field - More Fields - Document tab


To insert a field into the document, select the field Type, choose an item in the Select list, and—if available for that field type—choose an option in the Format list. Finally, click Insert.

Type

Lists the available field types.

Select

Lists the information available for the selected field type.

Available Type and Select options

Type

Select

Author

Inserts the name or initials of the current user (as entered in - LibreOfficeDev - User Data).

Date

Inserts the current date. You can insert the date as a fixed field - Date (fixed) - that does not change, or as a dynamic field - Date - that updates automatically. To update the Date field manually, press F9.

File name

Inserts the filename, file name without extension, path, or path and file name of the current document.

Heading

Insert the heading text (Heading contents), the heading number (Heading number), both (Heading number and contents), or the heading number without separator (Heading number without separator) of a heading preceding the field.

Page

Inserts the page number of the current, previous, or next page.

Paragraph Signature

Inserts a meta-data field with a digital signature for the paragraph. A digital certificate is required to sign a paragraph.

Sender

Inserts fields containing user data. To edit the user-data displayed choose - LibreOfficeDev - User Data.

Statistics

Inserts document statistics, such as page and word counts, as a field. To view the statistics of a document, choose File - Properties, and then click the Statistics tab.

In addition, the Page in page numbering range field inserts the page count in the page numbering range.

Templates

Inserts the filename, filename without extension, path, or path and filename of the current template. You can also insert the Template name and Category of the current template.

Time

Inserts the current time. You can insert the time as a fixed field - Time (fixed) - that does not change, or as a dynamic field - Time - that updates automatically. To update the Time field manually, press F9.


Tip Icon

To quickly insert a field from the Select list, double-click the field.


Format

If a field displays a date, time, number, file name, heading, or templates, Format is used to customize the appearance of that field. Common formats are shown in the Format list, or click Additional formats to define a custom format.

When you click Additional formats, the Format Number dialog opens, where you can define a custom format.

For type Heading, choose the format Heading number to display the heading number with the separator specified in Tools - Heading Numbering.

Choose Heading number without separator to display the heading number without the separator.

If the selected heading is not numbered, then the field is left blank.

Note Icon

For the HTML export and import of date and time fields, special LibreOfficeDev formats are used.


Fixed content

Inserts the field as static content, that is, the field cannot be updated.

Up to level

Use this option with type Heading to specify which heading to display. The displayed heading is the first one before the field whose outline level is equal to or less than the specified value.

Offset

Enter the offset value to apply to a page number field, for example "+1".

With an Offset value of 1, the field will display a number that is 1 more than the current page number, but only if a page with that number exists. On the last page of the document, this field will be empty.

Tip Icon

If you want to change the actual page number and not the displayed number, do not use the Offset value. To change page numbers, read the Page Numbers guide.


Offset in days/minutes

Enter the offset value to apply to a date or time field.