Fields

Fields plugin allows to add additional fields on various items GLPI manages: tickets, computers, users, ...

Requirements (on-premise)

GLPI Version
Minimum PHP
Recommended

10.0.x

8.1

8.2

11.0.0

8.2

8.4

This plugin is available without a GLPI Network subscription. It is also available on GLPI Cloud.

Install the plugin

  • Go to the marketplace. Download and install the plugin Fields.

Features

  • Add containers block on various items,

  • Add fields into blocks,

  • Display blocks in an existing tab or in their own tab,

  • Many fields types available,

  • Fields can be flagged as required,

  • Manage profiles ACLs per container,

  • ...

Install the Plugin

  • Uncompress the archive.

  • Move the fields directory to the <GLPI_ROOT>/plugins directory

  • Navigate to the Configuration > Plugins page,

  • Install and activate the plugin.

Usage

The plugin will create required tables in the database and some files on disk (into <GLPI_ROOT>/files/_plugins/fields) automatically. Those files and tables will be updated along with the plugin.

Plugin usage is quite simple:

  • create a block linked with some items,

  • create fields in this block.

You will access the plugin configuration from the Setup > Aditionnal fields menu.

Adding a new block

image
  • `Label`: the label of the block that will appears on items forms,

  • `Type`: type of display, one of:

    • `Add tab`: will add a new tab on the item form containing the block,

    • `Insertion in the form`: will add the block at the end of the main item form,

    • `Insertion in the form of a specific tab`: will add the block at the end of a specific tab of the item.

  • `Associated item type`: a list of items types on which the block will be added,

  • `Active`: whether the block is active or not.

You can add only one block of the type [Insertion in the form]{.title-ref} for an associated item type.

Inserting a block in a specific tab is only possible for one item:

image

Once a block have been created, it is possible to change its label or is active flag, but not its type or associated items list.

Profiles

You can refine profiles access on the block using the [Profiles]{.title-ref} tab from the block. You will be able to choose either [No access]{.title-ref}, [Read]{.title-ref} or [Write]{.title-ref} for every existing profile.

image

Adding a new field

image
  • `Label`: the label of the block that will appears on items forms,

  • [Type]{.title-ref} field type, one of:

    • `Header`: an header label, for visual distinction,

    • `Text (single line)[: a single line (]{.title-ref}[input/@type="text"]{.title-ref}`) of text,

    • `Text (multiples lines)[: a multiline (]{.title-ref}[textarea]{.title-ref}`) text,

    • `Number`: a single number (no text allowed),

    • `Dropdown`: a configurable dropdown list, values are configured from the main GLPI dropdown configuration you can find in Setup > Dropdowns menu,

    • `Yes/No`: a dropdown list with only [Yes]{.title-ref} and [No]{.title-ref} values,

    • `Date`: a standalone date with a date picker,

    • `Date & time`: a date field with a date picker and a time dropdown field (step is configured from GLPI core),

    • `Users`: list of users.

  • `Active`: whether the block is active or not,

  • `Read only`: flag this field as read only,

  • `Default values`: default field values,

  • `Mandatory field`: flag this field as mandatory.

Once fields have been created, you can reorder or edit them from the Fields tab of the block:

image

And see what it should look like on a [User]{.title-ref} item for example:

image

All fields that have been added are available in the attached items search forms.

Simplified Interface

Only blocks attached to tickets and with the type [Insertion in the form]{.title-ref} will be displayed in the simplified interface of ticket creation. Of course, it will also take care of current profile rights!

Translations

Added in version 1.4.0.

Plugin itself is translated using the transifex services; but you aslo can translate the label values for blocs and fields; the process is identical on both those ones:

On the block form, choose the Translations tab:

image

On block creation, a new translation with current language and value set as label will be created; you can add as many translations as you want.

image

Dropdown values can be translated using the core's dropdown configuration.

Entities

If you are using entities in your GLPI instance, a block will be displayed only if the entity it is attached to is compatible with the one of the item it applies to.

When you create or edit a block in multi entities mode, you'll have to choose if the block will be available in children entities:

image

As an example, let's say our entities have the following structure:

  • root

    • A

      • C

    • B

The following table will tell you in wich cases the block is displayed or not:

Block entity
Recursive block
Item entity
Block displayed

A

Yes or No

A

Yes

A

Yes or No

B

No

A

Yes

C

Yes

A

No

C

No

FAQ

If you have any questions about using the plugin, please consult our FAQ

Last updated

Was this helpful?