data/TWiki/VarFORMFIELD.txt,v
changeset 0 414e01d06fd5
child 1 e2915a7cbdfa
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/data/TWiki/VarFORMFIELD.txt,v	Sat Jan 26 15:50:53 2008 +0100
     1.3 @@ -0,0 +1,63 @@
     1.4 +head	1.2;
     1.5 +access;
     1.6 +symbols;
     1.7 +locks; strict;
     1.8 +comment	@# @;
     1.9 +
    1.10 +
    1.11 +1.2
    1.12 +date	2008.01.22.03.21.27;	author TWikiContributor;	state Exp;
    1.13 +branches;
    1.14 +next	1.1;
    1.15 +
    1.16 +1.1
    1.17 +date	2006.06.25.16.26.28;	author TWikiContributor;	state Exp;
    1.18 +branches;
    1.19 +next	;
    1.20 +
    1.21 +
    1.22 +desc
    1.23 +@buildrelease
    1.24 +@
    1.25 +
    1.26 +
    1.27 +1.2
    1.28 +log
    1.29 +@buildrelease
    1.30 +@
    1.31 +text
    1.32 +@%META:TOPICINFO{author="TWikiContributor" date="1111929255" format="1.1" version="2"}%
    1.33 +%META:TOPICPARENT{name="TWikiVariables"}%
    1.34 +#VarFORMFIELD
    1.35 +---+++ FORMFIELD{"fieldname"} -- renders a field in the form attached to some topic
    1.36 +   * Syntax: =%<nop>FORMFIELD{"fieldname"}%=
    1.37 +   * Supported parameters:
    1.38 +     | *Parameter:* | *Description:* | *Default:* |
    1.39 +     | ="fieldname"= | The name of a [[TWikiForms][TWiki form]] field | required |
    1.40 +     | =topic="..."= | Topic where form data is located. May be of the form =Web.<nop>TopicName= | Current topic |
    1.41 +     | =format="..."= | Format string. =$value= expands to the field value, and =$title= expands to the fieldname | ="$value"= |
    1.42 +     | =default="..."= | Text shown when no value is defined for the field | =""= |
    1.43 +     | =alttext="..."= | Text shown when field is not found in the form | =""= |
    1.44 +   * Example: =%<nop>FORMFIELD{"<nop>ProjectName" topic="Projects.<nop>SushiProject" default="(not set)" alttext="<nop>ProjectName field found"}%= 
    1.45 +   * Related: [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarSEARCH][SEARCH]]
    1.46 +
    1.47 +@
    1.48 +
    1.49 +
    1.50 +1.1
    1.51 +log
    1.52 +@buildrelease
    1.53 +@
    1.54 +text
    1.55 +@d1 1
    1.56 +a1 1
    1.57 +%META:TOPICINFO{author="TWikiContributor" date="1111929255" format="1.2" version="1"}%
    1.58 +a3 1
    1.59 +
    1.60 +d10 1
    1.61 +a10 1
    1.62 +     | =format="..."= | Format string. =$value= expands to the field value, and =$title= expands to the field title | ="$value"= |
    1.63 +d14 1
    1.64 +a14 1
    1.65 +   * Related: [[#VarSEARCH][SEARCH]]
    1.66 +@