Miscellaneous
textFieldTag()
Signature
Section titled “Signature”textFieldTag() — returns any
Description
Section titled “Description”Builds and returns a string containing a text field form control based on the supplied name. Note: Pass any additional arguments like class, rel, and id, and the generated tag will also include those values as HTML attributes.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
name | string | yes | — | Name to populate in tag’s name attribute. |
value | string | yes | — | Value to populate in tag’s value attribute. |
label | string | yes | — | See documentation for textField. |
labelPlacement | string | yes | around | See documentation for textField. |
prepend | string | yes | — | See documentation for textField. |
append | string | yes | — | See documentation for textField. |
prependToLabel | string | yes | — | See documentation for textField. |
appendToLabel | string | yes | — | See documentation for textField. |
type | string | yes | text | See documentation for textField. |
Examples
Section titled “Examples”<!--- Basic usage usually involves a `label`, `name`, and `value` --->
<cfoutput>
#textFieldTag(label="Search", name="q", value=params.q)#
</cfoutput>