Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

I can't save a form... .: Multiple documents are not supported at line 49 (near "---")

form

Solved by pamtbaau View solution

Started by Harry 3 years ago · 1 replies · 1263 views
3 years ago

I am new to Grav. I'm trying to get a generic contact form to work. I'm just cut and pasting the sample code, (without Captcha)

  • Email is set up and tested
  • I'm using the editor in expert mode and trying to put the code in the frontmatter section.
  • I changed multiple: false to true in form.yaml

Ultimately I want to use it with modular pages, but I still get the same error when I try it with a standard page setup.

3 years ago Solution

@hsweet,

When using Admin in expert mode, the field 'Frontmatter' should only contain the frontmatter itself. Not the lines with --- and no Markdown.

The example you copied is correct when pasting into a page file using a text-editor.

👍 1

Suggested topics

Topic Participants Replies Views Activity
Forms & Blueprints · by Anna, 4 days ago
5 122 16 hours ago
Forms & Blueprints · by TomW, 1 month ago
3 352 1 month ago
Forms & Blueprints · by Japhy, 2 months ago
2 573 1 month ago
Forms & Blueprints · by FrViPofm, 2 months ago
5 594 2 months ago
Forms & Blueprints · by Ton Haarmans, 6 years ago
13 2597 9 months ago