1.1 --- a/data/TWiki/VarFORMFIELD.txt,v Sat Jan 26 15:50:53 2008 +0100
1.2 +++ b/data/TWiki/VarFORMFIELD.txt,v Mon Aug 11 20:30:19 2008 +0200
1.3 @@ -1,10 +1,15 @@
1.4 -head 1.2;
1.5 +head 1.3;
1.6 access;
1.7 symbols;
1.8 locks; strict;
1.9 comment @# @;
1.10
1.11
1.12 +1.3
1.13 +date 2008.08.03.22.17.45; author TWikiContributor; state Exp;
1.14 +branches;
1.15 +next 1.2;
1.16 +
1.17 1.2
1.18 date 2008.01.22.03.21.27; author TWikiContributor; state Exp;
1.19 branches;
1.20 @@ -21,12 +26,12 @@
1.21 @
1.22
1.23
1.24 -1.2
1.25 +1.3
1.26 log
1.27 @buildrelease
1.28 @
1.29 text
1.30 -@%META:TOPICINFO{author="TWikiContributor" date="1111929255" format="1.1" version="2"}%
1.31 +@%META:TOPICINFO{author="TWikiContributor" date="1111929255" format="1.1" version="3"}%
1.32 %META:TOPICPARENT{name="TWikiVariables"}%
1.33 #VarFORMFIELD
1.34 ---+++ FORMFIELD{"fieldname"} -- renders a field in the form attached to some topic
1.35 @@ -35,7 +40,7 @@
1.36 | *Parameter:* | *Description:* | *Default:* |
1.37 | ="fieldname"= | The name of a [[TWikiForms][TWiki form]] field | required |
1.38 | =topic="..."= | Topic where form data is located. May be of the form =Web.<nop>TopicName= | Current topic |
1.39 - | =format="..."= | Format string. =$value= expands to the field value, and =$title= expands to the fieldname | ="$value"= |
1.40 + | =format="..."= | Format string. =$value= expands to the field value, and =$title= expands to the fieldname (also expands $name, $attributes, $type, $size and $definingTopic) | ="$value"= |
1.41 | =default="..."= | Text shown when no value is defined for the field | =""= |
1.42 | =alttext="..."= | Text shown when field is not found in the form | =""= |
1.43 * Example: =%<nop>FORMFIELD{"<nop>ProjectName" topic="Projects.<nop>SushiProject" default="(not set)" alttext="<nop>ProjectName field found"}%=
1.44 @@ -44,6 +49,20 @@
1.45 @
1.46
1.47
1.48 +1.2
1.49 +log
1.50 +@buildrelease
1.51 +@
1.52 +text
1.53 +@d1 1
1.54 +a1 1
1.55 +%META:TOPICINFO{author="TWikiContributor" date="1111929255" format="1.1" version="2"}%
1.56 +d10 1
1.57 +a10 1
1.58 + | =format="..."= | Format string. =$value= expands to the field value, and =$title= expands to the fieldname | ="$value"= |
1.59 +@
1.60 +
1.61 +
1.62 1.1
1.63 log
1.64 @buildrelease