Priority: Enhancement
Current State: Closed
Released In: n/a
Target Release: n/a
Micha mentioned that he was already working on this on IRC the other day, but I thought it warranted a feature request:
It would be rad if
FlexFormPlugin had a
hideempty
argument that, when set to
on
, would surpress the output of any "empty" form fields.
For the purposes of this argument, I'd suggest defining empty as:
- NULL or undefined
- whitespace (' ', '\r\n', '\t', etc.)
- an empty string ('')
I've seen many templates littered with
IfStatements that test for empty form fields when building prettified form output; it would be much easier to maintain using
FlexFormPlugin with
hideempty
set to
on
.
--
AaronFuleki - 18 Mar 2011
Other changes:
- added autolink param
- fixed getting default values
- added global sort param
- added fieldname_format param
- protecting %MACROs in value attr of an input field
- added fieldname_sort param to sort allowed field values before displaying them
Released in 2.40
--
MichaelDaum - 18 Mar 2011