Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Common form content

form

Started by Martijn Jasperse 6 years ago · 0 replies · 890 views
6 years ago

Hi all,
I have been very impressed migrating to grav so far - I have found it easy to set up and work with! I think it is a very well-designed system that strikes a good balance between flexibility and simplicity.

I have some pages with front-end forms that work very well for my needs - functionality is as desired. However, the first ~30% of these forms are identical fields so I'd like to make it common somehow. Do you have any advice on how to do this?

I originally thought about modifying form.fields in my template twig, but is there a better way to do it? Can I somehow include the common parts through the page frontmatter on my form definition? Or would I need to make a plugin for this?

Thanks for your help!

Suggested topics

Topic Participants Replies Views Activity
Forms & Blueprints · by Anna, 2 days ago
2 53 16 hours ago
Forms & Blueprints · by Anna, 3 days ago
7 82 16 hours ago
Forms & Blueprints · by Anna, 1 week ago
5 186 6 days ago
Forms & Blueprints · by TomW, 1 month ago
3 379 1 month ago
Forms & Blueprints · by Japhy, 2 months ago
2 595 2 months ago