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