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

Inserting values in form display type

Started by Senne Bosmans 6 years ago · 0 replies · 534 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 renedebaaij, 1 day ago
0 28 1 day ago
Plugins · by complanar, 3 weeks ago
6 382 2 weeks ago
Plugins · by BenLaKnet, 2 weeks ago
1 201 2 weeks ago
Plugins · by complanar, 1 month ago
2 478 4 weeks ago
Plugins · by Vladimir Novak, 2 months ago
3 754 2 months ago