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

Inserting values in form display type

Started by Senne Bosmans 6 years ago · 0 replies · 380 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 Rene, 1 week ago
2 75 1 week ago
Plugins · by Xavier, 4 weeks ago
2 81 4 weeks ago
Plugins · by Luka Prinčič, 7 years ago
3 1208 1 month ago
Plugins · by Sebastian van de Meer, 1 month ago
1 75 1 month ago
Plugins · by PIERROT Alain, 2 months ago
3 99 2 months ago