Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 753

Developing applications
Hide thumbs Also See for 38043740 - ColdFusion Standard - Mac:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Requesting and Presenting Information
Type field
creditcard *
ssn * or social_security_number *
email *
URL *
guid *
uuid *
regex * or regular_expression *
Note: For more details on how ColdFusion handles data when it does onServer and hidden field validation, see
"Validating form data using hidden
The following validation types can only be used in
Type
Description
maxlength
Limits the input to a maximum number of characters specified by a
noblanks
Does not allow fields that consist only of blanks. ColdFusion uses this validation only if the
True.
SubmitOnce
Used only with
times before until the next page loads, Use this attribute, for example, to prevent a user from submitting an order
form a second time before getting the confirmation for the initial order, and thereby making a duplicate order,
Valid in HTML and XML format only; ignored in Flash format.
You can use the following validation types in
Type
Description
any
Any type of value
array
An array of values
binary
A binary value
query
A query object
string
A string value or single character
struct
A structure
variableName *
A string formatted according to ColdFusion variable naming conventions.
Validating form fields
In basic form field validation, do the following:
• Use a
or
cfinput
cftextarea
• Specify a validation type, such as numeric, or multiple types.
Description
Strips blanks and dashes; verifies number using mod10 algorithm. The number must have 13–16
digits.
US. Social Security number format, ###-##-####. The separator can be a dash (-) or a space.
A valid e-mail address of the form name@server.domain. ColdFusion validates the format only; it
does not check that entry is a valid active e-mail address.
A valid URL pattern; supports http, https, ftp file, mailto, and news URLs.
A unique identifier that follows the Microsoft/DCE format, xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx,
where x is a hexadecimal number.
A universally unique identifier (UUID) that follows the ColdFusion format, xxxxxxxx-xxxx-xxxx-
xxxxxxxxxxxxxxxx, where x is a hexadecimal number.
Matches the value against a regular expression specified in a
XML format only; ignored in Flash format.
fields" on page 755.
tags:
cfinput
cfformsubmit
and
image
types; prevents the user from submitting the same form multiple
and
cfparam
cfargument
tag.
Last updated 1/20/2012
pattern
attribute. Valid in HTML and
maxlength
attribute.
required
tags and the
function only:
IsValid
748
attribute is

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents