• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item4042: Broken formfield "name" and "title" attributes

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Urgent Closed   minor 4.2.0

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


In a TWikiForm each field can have a name and a title. The name is used as a key to refer to the associated value in the form; the title is used to display the formfield in the form...

For example let's have a ProjectForm definition with a row like this

| [[ProjectStatusList][ProjectStatus]] | select | 1 |  | The status of the project | 

This has the effect that in edit mode the "ProjectStatus" label will be rendered as a link to ProjectStatusList...but not so when displaying the form in view mode. So while the label links perfectly in edit mode, it is broken in view mode.

Moreover, the META:FIELD as it has been stored to the topic currently is:

META:FIELD{name="ProjectStatus" attributes="" title="ProjectStatus" value="blabla"}
The title information is not stored to the topic's META:FIELD. It is only available in the form definition. I would have expected
META:FIELD{name="ProjectStatus" attributes="" title="ProjectStatusList" value="blabla"}
META:FIELD{name="ProjectStatus" attributes="" title="[[ProjectStatusList][ProjectStatus]]" value="blabla"}

Looking at the code TWiki::Form::renderForEdit() the both parts of the bracket link are treated as


But not so in TWiki::Form::renderForDisplay(). The title is used as a fallback when the name is not defined...a case that barely occurs at all. The title & name pair of a formfield is used inconsistent in view and edit mode.

-- TWiki:Main/MichaelDaum - 09 May 2007

This issue is restricted to fields that use the squab syntax for the link. the problem is that the defining topic is pulled off when the form is parsed, and isn't put back when the meta-data is saved.


Summary Broken formfield "name" and "title" attributes
ReportedBy TWiki:Main.MichaelDaum

SVN Range TWiki-4.1.2, Tue, 08 May 2007, build 13668
AppliesTo Engine

Priority Urgent
CurrentState Closed

Checkins TWikirev:13713
TargetRelease minor
ReleasedIn 4.2.0
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r6 - 2008-01-22 - KennethLavrsen
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback