create new tag
, view all tags

Feature Proposal: Provide option to hide certain TWikiForm fields in view.


Sometimes it is desireable to hide some or all of the TWikiForm fields in view, either because the information contained is not for general consumption or merely to simplify the rendered view.


What is proposed it to have a form field attribute which allows the field to be editable in edit mode, but not to be shown when the form is being rendered. This feature idea grew out of discussion in HiddenTopicSpecificSettings

-- LynnwoodBrown - 02 Jun 2005

Impact and Available Solutions

Note: Patch is attached as http://twiki.org/p/pub/Codev/TWikiFormWithHiddenType/twiki-foo-bar-patch.diff. The patch is against the TWikiAlphaRelease of 15 Feb 2004.


Here's the relevant part from (for) TWikiForms

  • The Attributes column is used to define special behavior for that form field (multiple attributes can be entered, with or without separators):
    • An attribute H (for Hidden) indicates that this field should not be shown in view mode. However, the field is available for editing and storing information.


A form field is marked as hidden by placing H into its Attributes column. For example:

Name Type Size Values Tooltip message Attributes
hiddenfield label   is hidden in view mode   H
morehidden text 24 is hidden in view mode   H


Any comments on how the feature is implemented or could be improved


This is a sensible enhancement. May I suggest to rename this topic to TWikiFormWithHiddenType to make it analogous to the TWikiFormWithLabelType feature.

  • Name change makes sense to me. - LB

-- PeterThoeny - 03 Jun 2005

In SVN 4349

-- ThomasWeigert - 04 Jun 2005

What's the interface for this? Is there some extended syntax for TWikiForms or is it something that only plugins will be using?

Also, a brief description under the #Implementation heading above describing the new form field attribute and what values it takes would be nice.

-- SamHasler - 06 Jun 2005

There is no special interface. The usage is as described in the documentation for TWikiVariables (on DevelopBranch). Just put an "H" (case-insensitive) into the attributes column of the form definition.

The implementation is simple. RenderDotPm does not render such fields.

Not sure what you are looking for in terms of documentation beyond the doco in TWikiVariables.

-- ThomasWeigert - 07 Jun 2005

Now I am confused. Shouldn't that be a new field type spelled out as hidden, documented in TWikiForms#Form_Template_Elements ?

-- PeterThoeny - 07 Jun 2005

No. The field type is whatever it is (label, select, text, etc.). That supports the editing of the field. Hidden is an attribute that tells us that we do not show this field in the view page. (At least these were Lynnwood's requirements...)

-- ThomasWeigert - 09 Jun 2005

You can't edit field meta attributes though. So how does it get set?

I can't find any reference to hidden fields on http://develop.twiki.org/~develop/cgi-bin/view/TWiki/TWikiVariables is that where I should be looking or should I be checking the documentation in SVN?

-- SamHasler - 09 Jun 2005

it's in http://develop.twiki.org/~develop/cgi-bin/view/TWiki/TWikiForms (for how to define forms)

-- WillNorris - 09 Jun 2005

Sam, field attributes are part of the form definition. You edit those when you create (or change) the form definition...

-- ThomasWeigert - 09 Jun 2005

Thanks Thomas for the clarification, and thanks FranzJosefSilli for fixing the docs above.

-- PeterThoeny - 10 Jun 2005

Edit | Attach | Watch | Print version | History: r17 < r16 < r15 < r14 < r13 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r17 - 2005-06-23 - SvenDowideit
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2015 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.