StyleCode Property: fieldType v1

fieldType

Specifies explicitly the type of the field.
Some values will only work on specific data types, if not matching, a ‘bad field type’ rectangle is displayed instead.

Applies to Type Default
form > entry auto, button, dropdown auto

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