Skip to main content

Picklist Colours

There are various instances across Seven20 where values from picklist fields are used to inform the colour of related UI elements, for example as a visual representation of different statuses. The colours associated with specific values can be configured using Hex colour codes via the Picklist Colour custom metadata type.

Picklist Colour metadata

A metadata record is required for each individual picklist value and can be configured as follows:

Field LabelField Api NameDescriptionEditable
Developer NameDeveloperNameThe unique name of the recordYes
LabelLabelA user friendly version of the Developer NameYes
Colorseven20__Color__cThe Hex code of the desired colour, including the #Yes
Objectseven20__Object__cA picklist for selecting the relevant objectYes
Picklist Fieldseven20__Picklist_Field__cA picklist for selecting the relevant field from the selected objectYes
Picklist Valueseven20__Picklist_Value__cThe API name of the relevant picklist valueYes