Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Changes in Custom form not being saved

Started by Daniel Schubert 8 years ago · 1 replies · 766 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 Japhy, 4 hours ago
0 12 4 hours ago
Forms & Blueprints · by FrViPofm, 3 weeks ago
5 274 2 weeks ago
Forms & Blueprints · by Ton Haarmans, 6 years ago
13 2265 8 months ago
Forms & Blueprints · by Hugo Oliveira, 9 months ago
0 729 9 months ago
Forms & Blueprints · by Flachy Joe, 10 months ago
9 810 10 months ago