Difference: VarFORMFIELD (1 vs. 8)

Revision 82015-10-24 - TWikiContributor

Line: 1 to 1
 
META TOPICPARENT name="TWikiVariables"
Changed:
<
<

FORMFIELD{"fieldname"} -- renders a field in the form attached to some topic

>
>

FORMFIELD{"fieldname"} -- render a field in the form attached to some topic

 
Line: 14 to 14
 
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"}%
Added:
>
>
  • 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" }%" />
    • Note: It is easier to use EDITFORMFIELD for custom input fields
Changed:
<
<
>
>

Revision 72014-03-22 - TWikiContributor

Line: 1 to 1
 
META TOPICPARENT name="TWikiVariables"

FORMFIELD{"fieldname"} -- renders a field in the form attached to some topic

Line: 12 to 12
 
default="..." Text shown when no value is defined for the field ""
alttext="..." Text shown when field is not found in the form ""
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
Changed:
<
<
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" and encode="url". See ENCODE for details. "" (no encoding)
>
>
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: <input type="text" name="Address" value="%FORMFIELD{ "Address" encode="html" }%" />
    • Note: It is easier to use EDITFORMFIELD for custom input fields

Revision 62013-07-18 - TWikiContributor

Line: 1 to 1
 
META TOPICPARENT name="TWikiVariables"

FORMFIELD{"fieldname"} -- renders a field in the form attached to some topic

Line: 7 to 7
 
Parameter: Description: Default:
"fieldname" The name of a TWiki form field required
topic="..." Topic where form data is located. May be of the form Web.TopicName Current topic
Changed:
<
<
format="..." Format string. Variable $value expands to the field value, $title to the raw field name, $name to the field name, $attributes to the attributes, $type to the form field type, $size to the size, and $definingTopic to the form definition topic. "$value"
>
>
rev="..." Get the form field value from the specified topic revision, range "1" to top revision of topic. "0" is equivalent to the top revision The rev URL parameter value if present, otherwise the top revision
format="..." Format string. Supported variables:
$value - form field value
$value(20, -<br />) - value hyphenated every 20 characters using separator -<br />
$value(30, ...) - value shortened to 30 characters
$length - length of value (can be used to test if value is set)
$title - raw field name (includes space and other special characters)
$name - field name (sanitized title)
$attributes - form field attributes
$formtopic - name of form definition topic
"$value"
 
default="..." Text shown when no value is defined for the field ""
alttext="..." Text shown when field is not found in the form ""
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" and encode="url". See ENCODE for details. "" (no encoding)
  • Example: %FORMFIELD{"ProjectName" topic="Projects.SushiProject" default="(not set)" alttext="ProjectName field not found"}%
  • Example: <input type="text" name="Address" value="%FORMFIELD{ "Address" encode="html" }%" />
Changed:
<
<
>
>

Revision 52011-06-14 - TWikiContributor

Line: 1 to 1
 
META TOPICPARENT name="TWikiVariables"

FORMFIELD{"fieldname"} -- renders a field in the form attached to some topic

Line: 10 to 10
 
format="..." Format string. Variable $value expands to the field value, $title to the raw field name, $name to the field name, $attributes to the attributes, $type to the form field type, $size to the size, and $definingTopic to the form definition topic. "$value"
default="..." Text shown when no value is defined for the field ""
alttext="..." Text shown when field is not found in the form ""
Added:
>
>
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" and encode="url". See ENCODE for details. "" (no encoding)
 
  • Example: %FORMFIELD{"ProjectName" topic="Projects.SushiProject" default="(not set)" alttext="ProjectName field not found"}%
Changed:
<
<
>
>

Revision 42011-01-09 - TWikiContributor

Line: 1 to 1
 
META TOPICPARENT name="TWikiVariables"

FORMFIELD{"fieldname"} -- renders a field in the form attached to some topic

Line: 7 to 7
 
Parameter: Description: Default:
"fieldname" The name of a TWiki form field required
topic="..." Topic where form data is located. May be of the form Web.TopicName Current topic
Changed:
<
<
format="..." Format string. $value expands to the field value, and $title expands to the fieldname (also expands $name, $attributes, $type, $size and $definingTopic) "$value"
>
>
format="..." Format string. Variable $value expands to the field value, $title to the raw field name, $name to the field name, $attributes to the attributes, $type to the form field type, $size to the size, and $definingTopic to the form definition topic. "$value"
 
default="..." Text shown when no value is defined for the field ""
alttext="..." Text shown when field is not found in the form ""
Changed:
<
<
  • Example: %FORMFIELD{"ProjectName" topic="Projects.SushiProject" default="(not set)" alttext="ProjectName field found"}%
  • Related: SEARCH
>
>

Revision 32005-03-27 - TWikiContributor

Line: 1 to 1
 
META TOPICPARENT name="TWikiVariables"

FORMFIELD{"fieldname"} -- renders a field in the form attached to some topic

Line: 7 to 7
 
Parameter: Description: Default:
"fieldname" The name of a TWiki form field required
topic="..." Topic where form data is located. May be of the form Web.TopicName Current topic
Changed:
<
<
format="..." Format string. $value expands to the field value, and $title expands to the fieldname "$value"
>
>
format="..." Format string. $value expands to the field value, and $title expands to the fieldname (also expands $name, $attributes, $type, $size and $definingTopic) "$value"
 
default="..." Text shown when no value is defined for the field ""
alttext="..." Text shown when field is not found in the form ""
  • Example: %FORMFIELD{"ProjectName" topic="Projects.SushiProject" default="(not set)" alttext="ProjectName field found"}%

Revision 22005-03-27 - TWikiContributor

Line: 1 to 1
 
META TOPICPARENT name="TWikiVariables"
Deleted:
<
<
 

FORMFIELD{"fieldname"} -- renders a field in the form attached to some topic

  • Syntax: %FORMFIELD{"fieldname"}%
  • Supported parameters:
Line: 8 to 7
 
Parameter: Description: Default:
"fieldname" The name of a TWiki form field required
topic="..." Topic where form data is located. May be of the form Web.TopicName Current topic
Changed:
<
<
format="..." Format string. $value expands to the field value, and $title expands to the field title "$value"
>
>
format="..." Format string. $value expands to the field value, and $title expands to the fieldname "$value"
 
default="..." Text shown when no value is defined for the field ""
alttext="..." Text shown when field is not found in the form ""
  • Example: %FORMFIELD{"ProjectName" topic="Projects.SushiProject" default="(not set)" alttext="ProjectName field found"}%
Changed:
<
<
>
>
 

Revision 12005-03-27 - TWikiContributor

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="TWikiVariables"

FORMFIELD{"fieldname"} -- renders a field in the form attached to some topic

  • Syntax: %FORMFIELD{"fieldname"}%
  • Supported parameters:
    Parameter: Description: Default:
    "fieldname" The name of a TWiki form field required
    topic="..." Topic where form data is located. May be of the form Web.TopicName Current topic
    format="..." Format string. $value expands to the field value, and $title expands to the field title "$value"
    default="..." Text shown when no value is defined for the field ""
    alttext="..." Text shown when field is not found in the form ""
  • Example: %FORMFIELD{"ProjectName" topic="Projects.SushiProject" default="(not set)" alttext="ProjectName field found"}%
  • Related: SEARCH
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.VarFORMFIELD.