From: Tobias Diekershoff Date: Wed, 2 Oct 2019 05:33:30 +0000 (+0200) Subject: add option 'require' for textarea form elements X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8db7934a30104a55aef1f8dcabab4963acfc5db3;p=friendica.git add option 'require' for textarea form elements --- 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}}