Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Common form content

form

Started by Martijn Jasperse 6 years ago · 0 replies · 779 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 Japhy, 2 weeks ago
2 275 5 days ago
Forms & Blueprints · by FrViPofm, 4 weeks ago
5 331 4 weeks ago
Forms & Blueprints · by Ton Haarmans, 6 years ago
13 2322 8 months ago
Forms & Blueprints · by Hugo Oliveira, 9 months ago
0 783 9 months ago
Forms & Blueprints · by Flachy Joe, 10 months ago
9 872 10 months ago