Hi All,
I'm struggling with a form collecting some custom header data and not properly saving it.
Error message on Admin page, after attempting to save: Failed to save entry: Bad form data for field collection 'site': string used instead of an array
Context:
Based on the Learn Grav cookbook recipes I'm establishing a private area on my site. I've created a group "Private",
Hi All, I'm struggling with a form collecting some custom header data and not properly saving it.
Error message on Admin page, after attempting to save:
Failed to save entry: Bad form data for field collection 'site': string used instead of an array
Context: Based on the Learn Grav cookbook recipes I'm establishing a private area on my site. I've created a group "Private",
Pages, that are exclusively for this group, then have this in their frontmatter - and it works fine.
Reproducing the problem Now, for each page created I want to make sure, the editors can choose in the backend, whether the page is Private or not.
I've created a blueprint for the content type:
This results in a form, that works fine.
Ticking the box results in this frontmatter entry, which seems fine for me.
Now - anytime I try to save the file again, edits or not, I get shown the error code above and the file is not saved again.![Screenshot 2023-01-23 at 10 37 14](https://user-images.githubusercontent.com/5027350/214081641-0e9ed97a-3a74-4302-9f95-0e7be5988bf1.png)
Any pointers? Where is my mistake? What am I missing? (Also, is this a Admin Plugin issue? Where would be the right place to ask?)
Super grateful for any help - thanks a lot!!!