Item10508: Implement hideempty argument for FlexFormPlugin

pencil
Priority: Enhancement
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: FlexFormPlugin
Branches:
Reported By: AaronFuleki
Waiting For:
Last Change By: MichaelDaum
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
 
Topic revision: r2 - 18 Mar 2011, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy