Skip to content

Miscellaneous

textAreaTag()

textAreaTag() — returns any

Builds and returns a string containing a text area 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.

NameTypeRequiredDefaultDescription
namestringyes—See documentation for textFieldTag.
contentstringyes—Content to display in textarea on page load.
labelstringyes—See documentation for textField.
labelPlacementstringyesaroundSee documentation for textField.
prependstringyes—See documentation for textField.
appendstringyes—See documentation for textField.
prependToLabelstringyes—See documentation for textField.
appendToLabelstringyes—See documentation for textField.
<!--- Basic usage usually involves a `label`, `name`, and `password` --->
<cfoutput>
    #textAreaTag(label="Description", name="description", content=params.description)#
</cfoutput>