Checkboxes in Blueprint -

Hi,

I’m trying to use checkboxes in my blueprint to enable multiple select of categories. However when I add the type:checkboxes to my blueprint I get the follow error "Field misconfiguration: checkboxes field is broken"
I can get it to work with the ‘Checkbox’ type for 1 option, but not having any luck with the following.

title: Job article
pages:false
files: true
fields:
  title:
    label: Title
    type:  text
    width: 1/2
    required: true
    validate:
      min: 4
      max: 140
      - alphanum
  date:
    label:  Date
    type:   date
    width:  1/2
    format: MM/DD/YYYY
    required: true
  location:
    label: Location
    type:  text
  description:
    label: Description
    type:  textarea
    required: true
  categories:
    label: Categories
    type: checkboxes
    options:
      design: Design
      architecture: Architecture
      photography: Photography
      3d: 3D
      web: Web

anyone help me out please?

thanks

Hey there! I’ve never seen this error message although I have broken quite a few fields myself!

Can you try to copy your code with the proper indentation? You can paste it, select the code button in the editor <> and it will make it look great!
The reason I’m asking this is twofold: it’ll help for legibility and it may just be an indentatio problem (yaml is picky).

The above code looks alright and works. So this is weird. I just tested by copying/pasting this into a test installation. But as @Thiousi suggested, you might still have an indentation problem in your blueprint.

Hey,

Turns out I was working with an old version of Kirby, updated to the latest and it all works fine. thanks for you help :slight_smile:

1 Like

Good news! Which version was that ?

Sorry, I believe it was version 1.1.2. thanks

Oh, that was Kirby 1, then. All the documentation refers to Kirby 2 only.

Yep, it makes sense that it wasn’t working !

BTW: All official Kirby 2 repos (kirby, panel, kits,) can be found in one place: the getkirby organization on GitHub. The plugins have their own home: https://github.com/getkirby-plugins