This tag is used to render a contentType on a display page
Basic usage. Rendering a packages/forms object:
&tl;ft:object typename="mmInquiry" />
Rendering specific fields
<ft:object typename="farLogin" lFields="username,password" prefix="login" legend="" />
Separate items from the same contentType, but grouped so ft:processFormObjects only sees one object:
<h1>Your Stuff</h1> &tl;ft:object typename="mmInquiry" lFields="firstname,lastname" key="thereCanBeOnlyOne" /> <h1>Other Stuff</h1> &tl;ft:object typename="mmInquiry" lFields="kidsname,dogsname" key="thereCanBeOnlyOne" />
| Library | formtools |
| Prefix | ft |
| Library path | /farcry/core/tags/formtools |
| CFImport | <cfimport taglib="/farcry/core/tags/formtools" prefix="ft" /> |
| Single tag | true |
| Name | Type | Required | Default | Options | Description |
| ObjectID | string | no | ObjectID of object to render | ||
| stObject | string | no | Object to render | ||
| typename | string | no | Type of Object to render | ||
| key | string | no | Used to group several ft:objects into one object. (Used to generate a new object) For example, if you have several ft:object's in an ft:form you can use this to group them into one object for ft:processFormObjects | ||
| ObjectLabel | string | no | Used to group and label rendered object if required | ||
| lFields | string | no | List of fields to render | ||
| lExcludeFields | string | no | label | List of fields to exclude from render | |
| class | string | no | class with which to set all farcry form tags | ||
| style | string | no | style with which to set all farcry form tags | ||
| format | string | no | edit | edit or display | |
| IncludeLabel | string | no | 1 | ||
| IncludeFieldSet | string | no | |||
| IncludeBR | string | no | 1 | ||
| InTable | string | no | 0 | ||
| insidePLP | string | no | 0 | how are we rendering the form | |
| r_stFields | string | no | the name of the structure that is to be returned with the form field information. | ||
| r_stPrefix | string | no | the name of the structure that is to be returned with the form field prefix used. | ||
| stPropMetadata | string | no | #structNew()# | This is used to override the default metadata as setup in the type.cfc | |
| wizardID | string | no | If this object call is part of a wizard, the object will be retrieved from the wizard storage | ||
| bValidation | string | no | true | Flag to determine if client side validation classes are added to this section of the form. | |
| lHiddenFields | string | no | List of fields to render as hidden fields that can be use to inject a value into the form post. | ||
| stPropValues | string | no | #structNew()# | ||
| bIncludeSystemProperties | string | no | false | Allow system properties to be displayed.. | |
| lock | string | no | true | Lock if editing. | |
| bShowFieldHints | boolean | no | true | Flag to determine if the field hints are display. | |
| prefix | string | no | Allows the developer to pass in the prefix they wish to use. Default is the objectid stripped of the dashes. | ||
| focusField | string | no | Enter the name of the field to focus on when rendering the form. |