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.
Name | Type | Required | Default | Description |
---|---|---|---|---|
name | string | Yes | Name to populate in tag's name attribute. | |
value | string | No | Value to populate in tag's value attribute. | |
label | string | No | See documentation for textField. | |
labelPlacement | string | No | around | See documentation for textField. |
prepend | string | No | See documentation for textField. | |
append | string | No | See documentation for textField. | |
prependToLabel | string | No | See documentation for textField. | |
appendToLabel | string | No | See documentation for textField. | |
type | string | No | text | See documentation for textField. |
<!--- Basic usage usually involves a `label`, `name`, and `value` ---> <cfoutput> #textFieldTag(label="Search", name="q", value=params.q)# </cfoutput>