Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Inserting values in form display type

Started by Senne Bosmans 6 years ago · 0 replies · 503 views
6 years ago

Hello

I've been having a problem displaying values with the form plugin.

If I send an e-mail, I can include {{ form.value.email }} and it will automatically include the given e-mail in the emailfield. Now I would like to do the same in a type: display field e.g

TWIG
type: display
content: '{{ form.value.field1 + form.value.field2}}'

Is there a way to implement this? Now it just shows as text ({{ form.value.field1 + form.value.field2}}) instead of the actual values (e.g 5 when the values of field1 and 2 are 4 and 1).

Suggested topics

Topic Participants Replies Views Activity
Plugins · by complanar, 2 weeks ago
2 259 4 days ago
Plugins · by Vladimir Novak, 1 month ago
3 595 1 month ago
Plugins · by Mathieu Lecouturier, 2 months ago
3 417 2 months ago
Plugins · by Slebeig, 2 months ago
1 531 2 months ago
Plugins · by Rene, 3 months ago
2 735 3 months ago