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

Version 1 Next »

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.
Example:
```js
// 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