From 8db7934a30104a55aef1f8dcabab4963acfc5db3 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Wed, 2 Oct 2019 07:33:30 +0200 Subject: [PATCH] add option 'require' for textarea form elements --- doc/smarty3-templates.md | 1 + view/templates/field_textarea.tpl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/smarty3-templates.md b/doc/smarty3-templates.md index 599e3597e7..f174f21642 100644 --- a/doc/smarty3-templates.md +++ b/doc/smarty3-templates.md @@ -177,6 +177,7 @@ Field parameter: 1. Label for the input box, 2. Current text for the box, 3. Help text for the input box. +4. if set to "required" modern browser will check that this input box is filled when submitting the form, ### field_yesno.tpl diff --git a/view/templates/field_textarea.tpl b/view/templates/field_textarea.tpl index eadcbe56c7..17b07266a9 100644 --- a/view/templates/field_textarea.tpl +++ b/view/templates/field_textarea.tpl @@ -1,7 +1,7 @@
- + {{if $field.3}} {{$field.3 nofilter}} {{/if}}