kirby-plugin-custom-add-fields icon indicating copy to clipboard operation
kirby-plugin-custom-add-fields copied to clipboard

Default Values not loaded

Open hariom147 opened this issue 2 years ago • 2 comments

First of all: Thanks for this great plugin and for updating it to Kirby 3.6! I noticed that default values are not loaded into the fields, when opening the page add dialog. I have the following code in blueprints, but neither is the date set to now (current date) nor is the toggle field set to true (on).

addFields:
  date:
    label: Datum
    type: date
    default: now
    width: 2/3
    required: true
    help: "{{page.date.toDate('l')}}"
  templatetoggle:
    label: ohne Vorlage
    type: toggle
    width: 1/3
    default: true

hariom147 avatar Dec 03 '21 15:12 hariom147

@hariom147 Thank you for the kind words.

The core of the problem seems to be related to kirby. Therefore, I filed this issue.

steirico avatar Dec 04 '21 12:12 steirico

Thanks finding the cause and letting the Kirby team know.

hariom147 avatar Dec 04 '21 12:12 hariom147