• 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.

Item4741: %META{"formfield" ....} does not expand

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine core Urgent Closed   patch 4.2.1

Edit Form Data

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


The documentation in VarMETA states you can use this:

%META{"formfield" name="foo"}%

to get the value of formfield foo.

However, this does not seem to work in 4.1.2 and 4.2.0-beta1. A quick check of the code reveals this in TWiki.pm sub META:

    } elsif ( $option eq 'formfield' ) {         # a formfield from within topic text         return $meta->renderFormFieldForDisplay( $params );     } elsif( $option eq 'attachments' ) { 

While the signature for $meta->renderFormFieldForDisplay is:

ObjectMethod renderFormFieldForDisplay($name, $format, $attrs) -> $text

So, WTF? Am I crazy, or is this a bug (not mutually exclusive though). If it is a bug, i'd be happy to fix it, but please can someone confirm that it is indeed a bug..?

-- TWiki:Main/KoenMartens - 28 Sep 2007

I ran into the same problem after upgrading to 4.2. The attached patch fixes the bug. If anybody from the developers is reading this - please add the patch to the main source.

-- TWiki:Main.StefanWalter - 28 Apr 2008

It's a bug, and Stefan's patch fixes it. Go ahead, Koen.

-- CrawfordCurrie - 29 Apr 2008

No more waiting. I have checked in the fix and tested it.

Thanks to Stefan

-- KennethLavrsen - 04 May 2008

Summary %META{"formfield" ....} does not expand
ReportedBy TWiki:Main.KoenMartens
Codebase 4.1.2, 4.2.0
SVN Range

AppliesTo Engine
Component core
Priority Urgent
CurrentState Closed

Checkins TWikirev:16769 TWikirev:16770
TargetRelease patch
ReleasedIn 4.2.1
Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatpatch meta.patch r1 manage 0.6 K 2008-04-28 - 07:07 UnknownUser patch
Edit | Attach | Watch | Print version | History: r9 < r8 < r7 < r6 < r5 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r9 - 2008-08-04 - KennethLavrsen
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback