Unable to prepopulate block field

Hello
I’m running the last version of kirby and I am trying to convert preexisting textarea fields to blocks fields, if I just switch “textarea” to “blocks” in the blueprint i get a json parsing error (there is data already).

I thought it may work by telling the field to prepopulate with a textarea field. I don’t find a way to do so, when i copy past the code from the reference :

fields:
  text:
    type: blocks
    default:
      - type: text
        content:
          text: Write something great…

i only get a empty block as shown in this capture :
image

Do i miss something ?

You could update programmatically, see this thread:

Setting default values won’t work because default are only used at page creation.

1 Like