Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Forms not rendering

Started by Muut Archive 11 years ago · 1 replies · 399 views
11 years ago

I just installed Grav but cannot get the forms to render.

My form.md looks like this and I have installed the form plugin

title: A page with a form
form:
name: my-nice-form
fields:

  • name: name
    label: Name
    placeholder: Enter your name
    autofocus: on
    autocomplete: on
    type: text
    validate:
    required: true

  • name: email
    label: Email
    placeholder: Enter your email address
    type: text
    validate:
    rule: email
    required: true

    buttons:

  • type: submit
    value: Submit

  • type: reset
    value: Reset

11 years ago

Are you using Antimatter or one of the default themes? The theme contains the templates/form.html.twig file?

P.S. use triple backticks (```) to render the code nicely in the forum

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1344 9 years ago
Archive · by Muut Archive, 9 years ago
2 930 9 years ago
Archive · by Muut Archive, 9 years ago
2 4058 9 years ago
Archive · by Muut Archive, 9 years ago
1 2943 9 years ago
Archive · by Muut Archive, 9 years ago
3 1116 9 years ago