User Guide

334 Chapter 2: ColdFusion Tags
cftextinput
Description
Puts a single-line text entry box in a cfform tag and controls its display characteristics.
Category
Forms tags
Syntax
<cftextinput
name = "name"
value = "text"
required = "Yes" or "No"
range = "min_value, max_value"
validate = "data_type"
pattern = "Java regular expression"
onValidate = "script_name"
message = "text"
onError = "text"
size = "integer"
font = "font_name"
fontSize = "integer"
italic = "Yes" or "No"
bold = "Yes" or "No"
height = "integer"
width = "integer"
vSpace = "integer"
hSpace = "integer"
align = "alignment"
bgColor = "color"
textColor = "color"
maxLength = "integer"
notSupported = "text">
See also
cfapplet, cfform, cfgrid, cfgridcolumn, cfgridrow, cfgridupdate, cfinput,
cfselect, cfslider, cftree, cftreeitem
History
ColdFusion MX 6.1: Changed the validate = "creditcard" option requirements: the text
entry must have 13-16 digits.
Attributes
Attribute Req/Opt Default Description
name Required Name for the cftextinput control.
value Optional Initial value to display in text control.
required Optional No Yes: the user must enter or change text
No
range Optional Minimum–maximum value range, delimited by a comma. Valid
only for numeric data.