Page creation dialog - fields

I have a select type field in my bluprint that is included in the page creation dialog. But when the user select any value from the dialog, then the same field in the backend is set to the first one.

Here is the code:

title: post
create:
  title:
    label: Titolo
  fields:
    - post_type

              post_type:
                label: Tipo post
                type: select
                options:
                  newmusic: New Music Weekly
                  news: News
                  post: Storie
                width: 1/2

Hm, can you reproduce this in a fresh starterkit? In my quick test in a current project I’m working on, this does not happen (but it’s on K5, didn’t test K4). Which K4 version?

Version 4.5.0

Hi, I updated the site to version 4.7.0 and I still have the same issue. BUT I found something interesting:

  • post_type (with underscore) DOESN’T WORK
  • posttype (no underscore) WORKS FINE

Could be a Kirby bug?

I cannot reproduce it. Added your field to the note.yml template and also the create option and it works fine. Could you please test this with a fresh Starterkit.

Then from there we can try to find out if it might be an issue with your project (settings, plugins etc.)

BTW: Did you delete the media folder after updating?

You were right (as usual): there was a problem with some settings in the config file!!! What an idiot. Sorry.