diff -r 000000000000 -r 414e01d06fd5 data/TWiki/VarFORMFIELD.txt,v --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/data/TWiki/VarFORMFIELD.txt,v Sat Jan 26 15:50:53 2008 +0100 @@ -0,0 +1,63 @@ +head 1.2; +access; +symbols; +locks; strict; +comment @# @; + + +1.2 +date 2008.01.22.03.21.27; author TWikiContributor; state Exp; +branches; +next 1.1; + +1.1 +date 2006.06.25.16.26.28; author TWikiContributor; state Exp; +branches; +next ; + + +desc +@buildrelease +@ + + +1.2 +log +@buildrelease +@ +text +@%META:TOPICINFO{author="TWikiContributor" date="1111929255" format="1.1" version="2"}% +%META:TOPICPARENT{name="TWikiVariables"}% +#VarFORMFIELD +---+++ FORMFIELD{"fieldname"} -- renders a field in the form attached to some topic + * Syntax: =%FORMFIELD{"fieldname"}%= + * Supported parameters: + | *Parameter:* | *Description:* | *Default:* | + | ="fieldname"= | The name of a [[TWikiForms][TWiki form]] field | required | + | =topic="..."= | Topic where form data is located. May be of the form =Web.TopicName= | Current topic | + | =format="..."= | Format string. =$value= expands to the field value, and =$title= expands to the fieldname | ="$value"= | + | =default="..."= | Text shown when no value is defined for the field | =""= | + | =alttext="..."= | Text shown when field is not found in the form | =""= | + * Example: =%FORMFIELD{"ProjectName" topic="Projects.SushiProject" default="(not set)" alttext="ProjectName field found"}%= + * Related: [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarSEARCH][SEARCH]] + +@ + + +1.1 +log +@buildrelease +@ +text +@d1 1 +a1 1 +%META:TOPICINFO{author="TWikiContributor" date="1111929255" format="1.2" version="1"}% +a3 1 + +d10 1 +a10 1 + | =format="..."= | Format string. =$value= expands to the field value, and =$title= expands to the field title | ="$value"= | +d14 1 +a14 1 + * Related: [[#VarSEARCH][SEARCH]] +@