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

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 · 901 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 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