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.

Forms & Blueprints

Selectize field "lose" custome values

Started by MJ 6 years ago · 2 replies · 511 views
6 years ago

Hi again,

I try to figure out if this a normal behavior or not. But I think I do something wrong.

Code is like this:

YAML
header.mytheme.navigation.navicon.options:
                  type: selectize
                  label: Icon Options
                  selectize:
                    options:
                      - text: fa-fw
                        value: fa-fw
                      - text: fa-lg
                        value: fa-lg
                      - text: fa-x2
                        value: fa-x2
                  validate:
                    type: commalist

And if I only take the option as given under "options:" everything is working as expected. But when I put some custom options in it and save it, all the custom ones are gone. In "Expert"-mode is see it in the header part of the file like:

YAML
 options:
                - fa-fw
                - 'hello there'
                - 'General Kenobi'

But after saving the page, all the costum Options are gone.

Maybe someone can give me a hint?

Thanks and allbest,

Mario

6 years ago

@KMJ_MJ, Unfortunately, I can reproduce the behaviour you observed and have no hint for you...

After some debugging, it seems to be related to the javascript used by the Admin panel to simulate a selectize field.

I have created an issue at the repo of the Admin panel. You might want to subscribe to the issue to following its responses/progress.

👍 1
6 years ago

Hi pamtbaau,

wow thanks for this.

Allbest,

Mario

Suggested topics

Topic Participants Replies Views Activity
Forms & Blueprints · by Ton Haarmans, 5 years ago
13 1165 4 months ago
Forms & Blueprints · by Hugo Oliveira, 5 months ago
0 89 5 months ago
Forms & Blueprints · by Flachy Joe, 6 months ago
9 163 6 months ago
Forms & Blueprints · by Augustus, 7 months ago
7 138 7 months ago
Forms & Blueprints · by Julien, 7 months ago
10 156 7 months ago