StyleCode Property: fieldChoices v1

fieldChoices

When the fieldType is “dropdown”, specifies the available choices that can be selected.

Applies to Type Default
form > entry Number, Boolean, Date, Text ``

Examples

// Example: form > entry
read form with
  SKU: text
  Maximum: number

table Choices = with
  [| as SKU, as Label |]
  [| "AAA", "Product A" |]
  [| "BBB", "Product B" |]

show form "My Form" a1b1 with
  SKU { fieldType: dropdown; fieldChoices: #(Choices.SKU); fieldChoiceLabels: #(Choices.Label) }
  Maximum