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