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 · 470 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 Vladimir Novak, 2 weeks ago
3 300 2 weeks ago
Plugins · by Mathieu Lecouturier, 3 weeks ago
3 278 3 weeks ago
Plugins · by Slebeig, 2 months ago
1 405 2 months ago
Plugins · by Rene, 2 months ago
2 576 2 months ago
Plugins · by Xavier, 3 months ago
2 491 3 months ago