Cannot Set Default For Toggle

I am trying to set the default for my toggle field using the default value in my blueprint but it isn’t working. One of these uses the fieldtoggle field plugin while the other is just a toggle field.

I’m using Kirby version 2.4.1 if that helps.

Fieldtoggle:

Blueprint Code for Field Toggle

  feature:
    label: Is This A Feature Page?
    type: fieldtoggle
    default: no
    options:
      no:  "No"
      yes: "Yes"
    show:
      yes: imagefield
    hide:
      no:  imagefield
   imagefield:
    label: Image
    type:  image

Blueprint for Normal Toggle Field:

pin:
    label: Pin on Archive?
    type: toggle
    default: no
    text: yes/no

When asking about plugins, please always provide a link to the plugin.

1 Like

edited to include the link now. Thank you

That should work for the fieldtoggle field:

pin:
    label: Pin on Archive?
    type: fieldtoggle
    default: "no"
    options:
      yes: "Yes"
      no: "No"

Your blueprint for the normal toggle field works for me.

1 Like

This is good! Thank you.

Also the default value for the normal toggle started working just now.
So my issues are solved.

Thanks again!