Cfinput - MACROMEDIA COLDFUSION MX 61-CFML Reference

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

Advertisement

cfinput

Description
Used within the
Provides input validation for the specified control type.
Category
Forms tags
Syntax
<cfinput
type = "input_type"
name = "name"
value = "initial_value"
required = "Yes" or "No"
range = "min_value, max_value"
validate = "data_type"
onValidate = "javascript_function"
pattern = "regexp"
message = "validation_msg"
onError = "text"
size = "integer"
maxLength = "integer"
checked
passThrough = "HTML_attributes">
See also
cfapplet, cfform, cfgrid, cfselect, cfslider, cftextinput,
History
ColdFusion MX 6.1: Changed the requirements for the
requires that the text entry have 13-16 digits.
ColdFusion MX: Changed the
ColdFusion checks radio and check box values only if their value matches the posted value for the
control. (In earlier releases, if the posted value did not match any of the
radio buttons for the control, the
Attributes
<em>
Attribute
Req/Opt
type
Optional
name
Required
value
Optional
required
Optional
range
Optional
tag, to place radio buttons, check boxes, or text boxes on a form.
cfform
cfform
checked
Default Description
text
No
validate
tag
attribute behavior: if it is set to True,
preserveData
attribute was used.
• text: creates a text entry box control
• radio: creates a radio button control
• checkbox: creates a check box control
• password: creates a password entry control
Name for form input element.
Initial value for form input element.
• Yes
• No
Minimum and maximum value range, separated by a comma.
If
type = "text" or "password"
data.
cftree
=
option: it
"creditcard"
check boxes or
cfinput
, this applies only to numeric
cfinput
201

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion mx

Table of Contents