|
META TOPICPARENT |
name="TWikiVariables" |
|
|
< < | FORMFIELD{"fieldname"} -- renders a field in the form attached to some topic |
> > | FORMFIELD{"fieldname"} -- render a field in the form attached to some topic |
|
- Syntax:
%FORMFIELD{"fieldname"}%
- Supported parameters:
|
|
newline="$br" |
Convert newlines in textarea to other delimiters. Variable $br expands to <br /> tag, and $n to a newline. Other text is encoded based on encode parameter. |
no conversion |
encode="html" |
Encode special characters into HTML entities. If a FORMFIELD is passed into an HTML form field it should be encoded as "html" . Additional encodings available: encode="quote" , encode="moderate" , encode="safe" , encode="entity" , encode="url" and encode="csv" . See ENCODE for details. |
"" (no encoding) |
- Example:
%FORMFIELD{"ProjectName" topic="Projects.SushiProject" default="(not set)" alttext="ProjectName field not found"}%
|
|
> > |
- Example:
%FORMFIELD{"Title" topic="%INCLUDINGTOPIC%" }%
- Note: Specify
topic="%INCLUDINGTOPIC%" if you have a base topic that includes a report topic, and in the report topic you want to reference a field of the base topic
|
|
- Example:
<input type="text" name="Address" value="%FORMFIELD{ "Address" encode="html" }%" />
|
|
< < | |
> > |
- Category: DatabaseAndFormsVariables, DevelopmentVariables, FormattingAndRenderingVariables
- Related: EDITFORMFIELD, ENCODE, ENTITY, META, METASEARCH, SEARCH, TWikiForms, FormattedSearch, QuerySearch, SearchHelp
|