1 <a name="VarFORMFIELD"></a>
3 ### <a name="FORMFIELD{"fieldname"} -- render"></a> FORMFIELD\{"fieldname"\} -- renders a field in the form attached to some topic
5 - Syntax: `%FORMFIELD{"fieldname"}%`
6 - Supported parameters: <table border="1" cellpadding="0" cellspacing="0">
8 <th bgcolor="#99CCCC"><strong> Parameter: </strong></th>
9 <th bgcolor="#99CCCC"><strong> Description: </strong></th>
10 <th bgcolor="#99CCCC"><strong> Default: </strong></th>
13 <td><code>"fieldname"</code></td>
14 <td> The name of a [[Main/TWikiForms]] field </td>
18 <td><code>topic="..."</code></td>
19 <td> Topic where form data is located. May be of the form <code>Web.TopicName</code></td>
20 <td> Current topic </td>
23 <td><code>format="..."</code></td>
24 <td> Format string. <code>$value</code> expands to the field value, and <code>$title</code> expands to the fieldname (also expands $name, $attributes, $type, $size and $definingTopic) </td>
25 <td><code>"$value"</code></td>
28 <td><code>default="..."</code></td>
29 <td> Text shown when no value is defined for the field </td>
30 <td><code>""</code></td>
33 <td><code>alttext="..."</code></td>
34 <td> Text shown when field is not found in the form </td>
35 <td><code>""</code></td>
38 - Example: `%FORMFIELD{"ProjectName" topic="Projects.SushiProject" default="(not set)" alttext="ProjectName field found"}%`
39 - Related: [[SEARCH|Main/VarSEARCH]]