MACROMEDIA COLDFUSION 4.5-CFML LANGUAGE Reference page 134

Cfml language reference
Table of Contents

Advertisement

110
date — Verifies US date entry in the form mm/dd/yyyy.
eurodate — Verifies valid European date entry in the form dd/mm/yyyy.
time — Verifies a time entry in the form hh:mm:ss.
float — Verifies a floating point entry.
integer — Verifies an integer entry.
telephone — Verifies a telephone entry. Telephone data must be entered as ###-
###-####. The hyphen separator (-) can be replaced with a blank. The area code
and exchange must begin with a digit between 1 and 9.
zipcode — (U.S. formats only) Number can be a 5-digit or
9-digit zip in the form #####-####. The hyphen separator (-) can be replaced
with a blank.
creditcard — Blanks and dashes are stripped and the number is verified using
the mod10 algorithm.
social_security_number — Number must be entered as ###-##-####. The
hyphen separator (-) can be replaced with a blank.
ONVALIDATE
Optional. The name of a valid JavaScript function used to validate user input. The
form object, input object, and input object value are passed to the specified
routine, which should return true if validation succeeds and false otherwise. When
used, the VALIDATE attribute is ignored.
MESSAGE
Optional. Message text to appear if validation fails.
ONERROR
Optional. The name of a valid JavaScript function you want to execute in the event
of a failed validation.
SIZE
Optional. The size of the input control. Ignored if TYPE is Radio or Checkbox.
MAXLENGTH
Optional. The maximum length of text entered when TYPE is Text.
PASSTHROUGH
Optional. HTML attributes that are not explicitly supported by CFINPUT. If you
specify an attribute and its value, the attribute and value are passed to the HTML
code that is generated for the CFINPUT tag. See the Usage section for more
information about specifying values.
Usage
You can add standard and dynamic HTML FORM tag attributes and their values to the
CFINPUT tag by using the PASSTHROUGH attribute. These attributes and values are
passed directly through ColdFusion to the browser in creating a form.
CFML Language Reference

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION 4.5-CFML LANGUAGE and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Coldfusion 4.5

Table of Contents