I was following this page (https://learn.getgrav.org/16/forms/forms/how-to-forms-in-modular-pages) and some other forum posts on the internet to add a simple form to my modular page, but I can't seem to figure out how to make it work.
I would expect the "subscribe" page to be shown below the "about" page
This is my current setup:
My "pages" folder:
.
└── 01.home
├── 01._home
│ └── text.md
├── 02._about
│ └── text.md
├── 03.subscribe
│ └── form.md
└── modular.md
And this is what's inside "modular.md" and "form.md" respectively:
---
title: Home
body_classes: modular
content:
items: '@self.modular'
---
---
title: Subscribe
cache_enable: false
form:
action: /home
name: my-nice-form
fields:
-
name: name
label: Name
placeholder: 'Enter your name'
autofocus: 'on'
autocomplete: 'on'
type: text
default: test
buttons:
-
type: submit
value: Submit
process:
-
message: 'Thank you for your feedback!'
---