data/TWiki/VarFORMFIELD.txt,v
changeset 0 414e01d06fd5
child 1 e2915a7cbdfa
equal deleted inserted replaced
-1:000000000000 0:414e01d06fd5
       
     1 head	1.2;
       
     2 access;
       
     3 symbols;
       
     4 locks; strict;
       
     5 comment	@# @;
       
     6 
       
     7 
       
     8 1.2
       
     9 date	2008.01.22.03.21.27;	author TWikiContributor;	state Exp;
       
    10 branches;
       
    11 next	1.1;
       
    12 
       
    13 1.1
       
    14 date	2006.06.25.16.26.28;	author TWikiContributor;	state Exp;
       
    15 branches;
       
    16 next	;
       
    17 
       
    18 
       
    19 desc
       
    20 @buildrelease
       
    21 @
       
    22 
       
    23 
       
    24 1.2
       
    25 log
       
    26 @buildrelease
       
    27 @
       
    28 text
       
    29 @%META:TOPICINFO{author="TWikiContributor" date="1111929255" format="1.1" version="2"}%
       
    30 %META:TOPICPARENT{name="TWikiVariables"}%
       
    31 #VarFORMFIELD
       
    32 ---+++ FORMFIELD{"fieldname"} -- renders a field in the form attached to some topic
       
    33    * Syntax: =%<nop>FORMFIELD{"fieldname"}%=
       
    34    * Supported parameters:
       
    35      | *Parameter:* | *Description:* | *Default:* |
       
    36      | ="fieldname"= | The name of a [[TWikiForms][TWiki form]] field | required |
       
    37      | =topic="..."= | Topic where form data is located. May be of the form =Web.<nop>TopicName= | Current topic |
       
    38      | =format="..."= | Format string. =$value= expands to the field value, and =$title= expands to the fieldname | ="$value"= |
       
    39      | =default="..."= | Text shown when no value is defined for the field | =""= |
       
    40      | =alttext="..."= | Text shown when field is not found in the form | =""= |
       
    41    * Example: =%<nop>FORMFIELD{"<nop>ProjectName" topic="Projects.<nop>SushiProject" default="(not set)" alttext="<nop>ProjectName field found"}%= 
       
    42    * Related: [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarSEARCH][SEARCH]]
       
    43 
       
    44 @
       
    45 
       
    46 
       
    47 1.1
       
    48 log
       
    49 @buildrelease
       
    50 @
       
    51 text
       
    52 @d1 1
       
    53 a1 1
       
    54 %META:TOPICINFO{author="TWikiContributor" date="1111929255" format="1.2" version="1"}%
       
    55 a3 1
       
    56 
       
    57 d10 1
       
    58 a10 1
       
    59      | =format="..."= | Format string. =$value= expands to the field value, and =$title= expands to the field title | ="$value"= |
       
    60 d14 1
       
    61 a14 1
       
    62    * Related: [[#VarSEARCH][SEARCH]]
       
    63 @