User Guide

Table Of Contents
666 Chapter 28: Validating Data
* Indicates attribute values that are not valid for the cfargument tag.
Note: For more details on how ColdFusion handles data when it does onServer and hidden field
validation, see “Validating form data using hidden fields” on page 675
The following validation types can only be used in cfinput tags:
You can use the following validation types in
cfparam and cfargument tags and the IsValid
function only:
:
* This value is not valid for the cfargument tag type attribute. The cfargument tag does support component names
as
type attribute values. For more information, see cfargument in CFML Reference.
uuid * A universally unique identifier (UUID) that follows the ColdFusion format,
xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxxxxxx, where x is a hexadecimal number.
regex * or
regular_expression *
Matches the value against a regular expression specified in a
pattern attribute.
Valid in HTML and XML format only; ignored in Flash format.
Type Description
maxlength Limits the input to a maximum number of characters specified by a
maxlength attribute.
noblanks Does not allow fields that consist only of blanks. ColdFusion uses this
validation only if the
required attribute is True.
SubmitOnce Used only with cfform submit and image types; prevents the user from
submitting the same form multiple 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.
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.
Type field Description