Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Current »

A JavaScript expression executed in Field Execution Context. An expression should return an array of objects representing the options available for selection. Each option should contain:

Name Type

Return type

Description

`value`

(any)

a property of any type except array (it can refer to an existing object which is not created in Choices expression)

`label`

(string number)

required if `value` is not a string or number

Option in its original form will be available in the Option template scope. You can define any additional properties to later use them in the Option template.

Examples

// doesn't work:
[
  { value: { name: 'A' }, label: 'a' },
  { value: { name: 'B' }, label: 'b' }
]

// works:
[
  { value: wizardState.objectA, label: 'a' },
  { value: wizardState.objectB, label: 'b' }
]

[
  { value: 'A' , label: 'a' },
  { value: 'B' , label: 'b' }
]



  • No labels