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