Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

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 · 1102 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 FrViPofm, 4 days ago
5 85 4 days ago
Forms & Blueprints · by Ton Haarmans, 6 years ago
13 2113 7 months ago
Forms & Blueprints · by Hugo Oliveira, 8 months ago
0 597 8 months ago
Forms & Blueprints · by Flachy Joe, 9 months ago
9 690 9 months ago
Forms & Blueprints · by Augustus, 10 months ago
7 737 10 months ago