Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Themes & Styling

Front-end form: select (multiple) not saving values

Started by julien 6 years ago · 3 replies · 583 views
6 years ago

Hi,

I created a front-end form to post. It's using the great plugin grav-plugin-add-page-by-form from @bleutzinn .
I managed to create different forms and it's working as expected. Even with the hurdle of image upload bug 🙂
But in one of my front-end form, I have a select field with multiple: true as follow:

YAML
name: photo_type
type: select
label: select multiple options
multiple: true
options:
      option1: 'option1'
      option2: 'option2'
      option3: 'option3'
      option4: 'option4'

All field values are saved but in the above field.
I get this in the frontmatter of the file:

photo_type: ' '

Does anyone have a clue? I've been searching but in vain.

Thank you

last edited 05/07/20 by julien
6 years ago

Probably something goes wrong with processing a select field in the Add Page plugin. Could you please create an issue in the plugin repository?

6 years ago

Thank you @bleutzinn for your prompt reply!
Done here GitHub issue #53.

Let me know if I can be of any help. Though I'm a front-end dev, my PHP knowledge revolve around views usually. But I can definitely test.

Cheers

6 years ago

Quick update: as mentioned on the GitHub issue, the plugin does not seem to be at fault. I will file an issue on the Grav repo.

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by Pedro M, 2 months ago
4 198 2 months ago
Themes & Styling · by Ian, 2 months ago
3 94 2 months ago
Themes & Styling · by Norbert, 2 years ago
11 456 3 months ago
Themes & Styling · by Lukáš Findeis, 3 months ago
0 48 3 months ago
Themes & Styling · by Sebadamus, 4 months ago
5 128 3 months ago