cftextinput

Overview ColdFusion Open BlueDragon Lucee

This tag is deprecated. Puts a single-line text entry box in a cfform tag and controls its display characteristics.

Attributes

Name Required Type Default Description
align No String * top * left * bottom * baseline * texttop * absbottom * middle * absmiddle * right
bgcolor No String Background color of control. For a hex value, use the form: textColor = "##xxxxxx", where x = 0-9 or A-F; use two hash signs or none.
bold No Boolean false Yes: displays tree control text in bold No: it does not
font No String arial Font name for data in tree control.
fontsize No Numeric Font size for text in tree control, in points.
height No Numeric Tree control height, in pixels.
hspace No Numeric Horizontal spacing to left and right of tree control, in pixels.
italic No Boolean false Yes: displays tree control text in italics No: it does not
8
label No String Label for text input
maxlength No Numeric The maximum length of text entered.
message No String Message text to display if validation fails
name Yes String Name for the cftextinput control.
notsupported No String Browser must support Java to
view ColdFusion Java Applets!
Text to display if a page that contains a Java applet-based cfform control is opened by a browser that does not support Java or has Java support disabled. Default: "Browser must support Java to
view ColdFusion Java Applets!
"
onerror No String Custom JavaScript function to execute if validation fails.
onvalidate No String Custom JavaScript function to validate user input. The form object, input object, and input object value are passed to routine, which should return True if validation succeeds, False otherwise. The validate attribute is ignored.
pattern No Regex JavaScript regular expression pattern to validate input. Omit leading and trailing slashes
range No String Minimum-maximum value range, delimited by a comma. Valid only for numeric data.
required No Boolean Yes: the user must enter or change text No
size No Numeric Number of characters displayed before horizontal scroll bar displays.
textcolor No String Text color for control. For a hex value, use the form: textColor = "##xxxxxx", where x = 0-9 or A-F; use two hash signs or none.
validate No String date: verifies format mm/dd/yy. eurodate: verifies date format dd/mm/yyyy. time: verifies time format hh:mm:ss. float: verifies floating point format. integer: verifies integer format. telephone: verifies telephone format ###-###-####. The separator can be a blank. Area code and exchange must begin with digit 1 - 9. zipcode: verifies, in U.S. formats only, 5- or 9-digit format #####-####. The separator can be a blank. creditcard: strips blanks and dashes; verifies number using mod10 algorithm. Number must have 13-16 digits. social_security_number: verifies format ###-##-####. The separator can be a blank. regular_expression: matches input against pattern attribute.
value No String Initial value to display in text control.
vspace No Numeric Vertical margin above and below tree control, in pixels.
width No Numeric Tree control width, in pixels.