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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Forms & Blueprints

Common form content

form

Started by Martijn Jasperse 6 years ago · 0 replies · 607 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 Ton Haarmans, 5 years ago
13 1140 4 months ago
Forms & Blueprints · by Hugo Oliveira, 5 months ago
0 63 5 months ago
Forms & Blueprints · by Flachy Joe, 6 months ago
9 138 6 months ago
Forms & Blueprints · by Augustus, 7 months ago
7 114 7 months ago
Forms & Blueprints · by Julien, 7 months ago
10 132 7 months ago