%FORMFIELD{"fieldname"}%
| 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. Variable $valueexpands to the field value,$titleto the raw field name,$nameto the field name,$attributesto the attributes,$typeto the form field type,$sizeto the size, and$definingTopicto 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 | "" | 
| newline="$br" | Convert newlines in textarea to other delimiters. Variable $brexpands to<br />tag, and$nto a newline. Other text is encoded based onencodeparameter. | 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"andencode="url". See ENCODE for details. | ""(no encoding) | 
%FORMFIELD{"ProjectName" topic="Projects.SushiProject" default="(not set)" alttext="ProjectName field not found"}% 
<input type="text" name="Address" value="%FORMFIELD{ "Address" encode="html" }%" />
 
  Copyright © 1999-2015 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Copyright © 1999-2015 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.