Name
CFTEXTINPUT
Synopsis
<CFFORM> <CFSLIDER> ... </CFFORM>
Creates a Java-based text input control for use within a
CFFORM
. Provides data validation as well as
customizable display characteristics.
Attributes
-
NAME="
name
"
The form-field name for the text input control. Required.
-
VALUE="
text
"
The initial value for the text input control. Optional.
-
REQUIRED="Yes|No"
Whether or not the text input control requires a value before being submitted. Optional. The default is
No
.-
RANGE="
min_value
,
max_value
"
A range of acceptable numeric values for the form-field. Optional.
-
VALIDATE="
validation_type
"
Validates the contents of the form-field before they are submitted using one of the following criteria; optional:
-
CreditCard
Validates the form-field data using the mod10 algorithm. A credit-card number can be entered as a single value or with dashes or spaces. ColdFusion automatically strips dashes and spaces before validating.
-
Date
Requires the form-field value to be in the U.S. date format,
mm
/
dd
/
yyyy
.-
EuroDate
Requires the form-field value to be in the European date format,
dd
/
mm
/
yyyy
.-
Float
Requires the form-field value to be a floating-point number.
-
Integer
Requires the form-field value to be an integer.
-
Social_Security_Number
Requires the form-field value to be a U.S. social-security number in the format
xxx
-
xx
-
xxxx
orxxx
xx
xxxx
.-
Telephone
Requires the form-field value to be a U.S. telephone number formatted either
xxx
-
xxx
-
xxxx
orxxx
xxx
xxxx
. The ...
-
Get Programming ColdFusion now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.