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

Changes in Custom form not being saved

Started by Daniel Schubert 8 years ago · 1 replies · 477 views
8 years ago

I have a custom Form.

Problem:
Changes are not being saved once the page is created.
Editing the frontmatter in Advanced mode does work.

YAML
 form:
      fields:
        tabs:
          type: tabs
          active: 1
          fields:
            type: tab
            title: Video Config

            content:
              fields:

                video_title:
                  type: spacer
                  title: Stream Settings

                header.status:
                  type: toggle
                  label: Stream Status
                  classes: fancy
                  highlight: live
                  default: pre
                  options:
                    'pre': Pre
                    'live': Live
                    'post': Post

                header.pre_video_url:
                  type: input
                  placeholder: URL for the PRE Show Video
                  label: Pre Video URL
                  validate:
                    required: true

Any halp would be appreciated.

last edited 10/16/18 by Daniel Schubert
8 years ago

I had this problem too.
My solutions where i forgot the "header." in front of some form fields.

I hope i could help you.

Suggested topics

Topic Participants Replies Views Activity
Forms & Blueprints · by Ton Haarmans, 5 years ago
13 1138 4 months ago
Forms & Blueprints · by Hugo Oliveira, 5 months ago
0 61 5 months ago
Forms & Blueprints · by Flachy Joe, 6 months ago
9 135 6 months ago
Forms & Blueprints · by Augustus, 7 months ago
7 110 7 months ago
Forms & Blueprints · by Julien, 7 months ago
10 129 7 months ago