MACROMEDIA COLDFUSION MX 61-CFML Reference page 202

Cfml reference
Hide thumbs Also See for COLDFUSION MX 61-CFML:
Table of Contents

Advertisement

Attribute
Req/Opt
validate
Optional
onValidate
Optional
pattern
Required if
validate =
"regular_
expression"
message
Optional
onError
Optional
size
Optional
maxLength
Optional
checked
Optional
passThrough Optional
In addition to the listed attributes, you can use the following HTML attributes in the
without using the
them in the HTML of the
202
Chapter 2: ColdFusion Tags
Default Description
Verifies a value's format:
• date: US date
• eurodate: European date
• time: time
• float: floating point entry
• integer: integer entry
• telephone: telephone
• zipcode: (U.S. formats only) 5-digit
• creditcard: must be a 13 to 16 digit integer after stripping
• social_security_number:
• regular_expression: matches input against regular
Custom JavaScript function to validate user input. The form
object, input object, and input object values are passed to
the routine, which should return True if validation succeeds,
and False otherwise. If used, the
ignored.
JavaScript regular expression pattern to validate input. Omit
leading and trailing slashes. For examples and syntax, see
Chapter 27, "Building Dynamic Forms,"
ColdFusion MX Applications.
Message text to display if validation fails.
Custom JavaScript function to execute if validation fails.
Size of input control. Ignored, if
"checkbox"
Maximum length of text entered, if
"password"
Selects a control. No value is required.
Applies if
Optional: you can enter the following values:
• true (equivalent to
• false (equivalent to omitting the attribute)
Passes one or more arbitrary attribute-value pairs to the
HTML code that is generated for the tag. You can use either
of the following formats to include the quotation marks
around the attribute value:
passthrough="ID=""myID"""
passthrough='ID="myID"'
The second format, which surrounds all the attribute-value
pairs to be passed through in single quotation marks is
clearer, particularly when you pass multiple HTML attributes.
attribute. The tag does not use these attributes, but includes
passThrough
tag that it generates and returns to the browser:
form
mm/dd/yyyy
hh:mm:ss
###-###-####
blank. Area code and exchange must begin with a digit 1 –
9.
. Separator: hyphen or blank.
#####-####
blanks and dashes; uses the mod10 algorithm.
or blank.
expression specified by the
.
.
type = "radio"
checked
dd/mm/yyyy
. Separator: hyphen or
or 9-digit
#####
. Separator: hyphen
###-##-####
attribute.
pattern
attribute is
validate
in Developing
or
type = "radio"
type = "Text"
or
.
"checkbox"
)
cfform
or
tag

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion mx

Table of Contents