Default value in select, with no empty option

Hi,

I have the following field in a block blueprint:

imageWidth:
  label: Image width (large screens)
  type: select
  default: '6'
  required: true
  empty: false
  width: 1/3
  options:
    '4': '4/12'
    '5': '5/12'
    '6': '6/12'
    '7': '7/12'
    '8': '8/12'

When a new block of this type is added I want the field to automatically be set to 6, and to have no empty option at the top of the select. Currently it is showing with an empty option, and with none of the values selected.

I have used this setup elsewhere, for example here:

imageCrop:
  label: Image crop
  type: select
  default: no-crop
  required: true
  empty: false
  width: 1/3
  options:
    no-crop: Do not crop
    square: Square
    golden-portrait: Golden ratio portrait
    golden-landscape: Golden ratio landscape

Where it works exactly as I need. Can anyone shed some light on why the first isn’t working? Is it an issue with having numbers as the value?

Yes, see docs: Select | Kirby CMS

Ah great, thanks for the quick reply :slightly_smiling_face: