/
Label formatter

Label formatter

Used to format options in the Domain Single Selection fields. A JavaScript expression executed in Field Execution Context with two additional variables.

Name Type

Return type

Description

Name Type

Return type

Description

`record`

(object)

a domain record for the current option

`displayValues`

Array<string>

an array with values of attributes defined in 'Display attributes' setting

Example:

For a PARAM.REGTYPE field specify these attributes in the Display Attributes setting:

100601,14901-100001

Then enter the following code in the Label Formatter setting:

displayValues[0] + ' (' + displayValues[1] + ')'

The dropdown list will show the name of the Registration type, followed by the corresponding client type in parentheses.

Such as:

  • LLC - Limited Liability Company (Business)

  • Non-Profit (Business)

  • Individual (Person)

Related content

Field Settings for Simple Selection Fields
Field Settings for Simple Selection Fields
More like this
Field Settings for Values from Domain Fields
Field Settings for Values from Domain Fields
More like this
Creating Selection from Domain Fields
Creating Selection from Domain Fields
More like this
Choices expression
More like this
Field Settings (common)
Field Settings (common)
More like this
Creating a Single or Multiple Selection Field
Creating a Single or Multiple Selection Field
More like this