Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 761

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

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Requesting and Presenting Information
<input type="text" name="StartDate" size="16" maxlength="16"><br>
<input type="hidden" name="StartDate_required"
value="You must enter a start date.">
<input type="hidden" name="StartDate_date"
value="Please enter a valid date as the start date.">
Use the following suffixes at the end of hidden form field names to specify the validation type. The type identifier
always starts with an underscore. Several validation rules have two names you can use. The names that do not start
with "_cf" were used in earlier releases and are retained for backward compatibility. For consistency and clarity, Adobe
recommends using the names that start with "_cf" in new forms.
Field name suffix
_integer, _cfforminteger
_cfformnumeric
_float, _cfformfloat
_range, _cfformrange
_date, _cfformdate
_cfformusdate
_eurodate, _cfformeurodate
_time, _cfformtime
_cfformcreditcard
_cfformSSN,
_cfformsocial_security_number
_cfformtelephone
_cfformzipcode
_cfformemail
Verifies
An integer of the range -2,147,483,648 — 2,147,483,647. Treats the initial characters "$ ¤ ¥ £ +" as
valid input, but removes them from the number.
Any numeric value. Treats the initial characters "$ ¤ ¥ £ +"as valid input, but does NOT remove them
from the number.
Any value (including an integer) that can be represented as a floating point number with up to 12
significant digits. Treats the initial characters "$ ¤ ¥ £ +" as valid input, but removes them from the
number.
Converts input data to a real number; for example a dump of an integer value on the action page
includes a decimal point followed by a 0.
A numeric value within boundaries specified by the
attribute using the format "min=minvalue max=maxvalue." You cannot specify a custom error
message for this validation.
A date in any format that ColdFusion can understand; converts the input to ODBC date format.
Allows entry of a time part, but removes it from the ODBC value.
A date in the form m/d/y, m-d-y , or m.d.y, The m and d format can be 1 or 2 digits; y can be 2 or 4
digits. Does not convert the string to an ODBC value and does not allow a time part.
A date in the form d/m/y, d-m-y, or d.m.y. The m and d format can be 1 or 2 digits; y can be 2 or 4
digits. Converts the input to ODBC date format. Allows entry of a time part, but removes it from the
ODBC value.
A time. Can be in 12-hour or 24-hour clock format, and can include seconds in the form hh:mm:ss
or a case-independent am or pm indicator.
Converts the input to ODBC time format. Allows entry of a date part, but removes it from the ODBC
value.
After stripping blanks and dashes, a number that conforms to the mod10 algorithm. Number must
have 13-16 digits.
A nine-digit Social Security number. Can be of the form xxx-xx-xxxx or xxx xx xxxx.
Standard U.S. telephone formats. Does not support international telephone numbers.
Allows area codes with or without parentheses, and hyphens (-), spaces, periods, or no separators
between standard number groups. Can be preceded by a 1 long-distance designator, and can end
with an up-to-5 digit extension, optionally starting with x. The area code and exchange must begin
with a digit in the range 1 - 9.
A 5-digit or 9-digit U.S. ZIP code. In 9-digit codes, precede the final four digits by a hyphen (-) or
space.
A valid e-mail address. Valid address characters are a-zA-Z0-9_- and the period and separator.
There must be a single at sign (@) and the text after the @ character must include a period, as in
my_address@MyCo.com or b-b.jones27@hisco.co.uk.
Last updated 1/20/2012
attribute. Specify the range in the value
value
756

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents