Skip to content

Ranking ​

Visitors put the options in order by dragging them, with the buttons, or with the keyboard.

yaml
handle: priorities
field:
  type: ranking
  display: 'What matters most?'
  options:
    -
      key: price
      value: Price
    -
      key: quality
      value: Quality
    -
      key: speed
      value: Speed

The order is stored as a list of option keys. If the visitor doesn't change anything, the order shown is submitted.