Space TimelineSpace Timeline

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)