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

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.


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 Like