Chapter 1: ColdFusion Tags
109
CFINPUT
CFINPUT is used inside
CFFORM
to place radio buttons, checkboxes, or text boxes.
Provides input validation for the specified control type.
CFINPUT supports the JavaScript onClick event in the same manner as the HTML
INPUT tag:
<CFINPUT TYPE="radio"
NAME="radio1"
onClick="JavaScript_function">
Syntax
<CFINPUT TYPE="input_type"
NAME="name"
VALUE="initial_value"
REQUIRED="Yes/No"
RANGE="min_value, max_value"
VALIDATE="data_type"
ONVALIDATE="javascript_function"
MESSAGE="validation_msg"
ONERROR="text"
SIZE="integer"
MAXLENGTH="integer"
CHECKED="Yes/No"
PASSTHROUGH="HTML_attributes">
TYPE
Optional. Valid entries are:
•
Text — Creates a text entry box control (default).
•
Radio — Creates a radio button control.
•
Checkbox — Creates a checkbox control.
•
Password — Creates a password entry control.
NAME
Required. A name for the form input element.
VALUE
Optional. An initial value for the form input element.
REQUIRED
Optional. Enter Yes or No. Default is No.
RANGE
Optional. Enter a minimum value, maximum value range separated by a comma.
Valid only for numeric data.
VALIDATE
Optional. Valid entries are:
Summary of Contents for COLDFUSION 4.5-CFML LANGUAGE
Page 1: ...Allaire Corporation CFML Language Reference ColdFusion 4 5...
Page 207: ...Chapter 1 ColdFusion Tags 183 CFCATCH CFTRY BODY HTML...
Page 224: ...200 CFMLLanguageReference CFOUTPUT P Text within CFOUTPUT is always shown CFOUTPUT BODY HTML...
Page 336: ...312 CFMLLanguageReference CFIF BODY HTML...
Page 404: ...380 CFMLLanguageReference DE It is morning CFOUTPUT P BODY HTML...
Page 413: ...Chapter 2 ColdFusion Functions 389 Customer BalanceDue BR CFOUTPUT CFIF BODY HTML...
Page 483: ...Chapter 2 ColdFusion Functions 459 CFOUTPUT CFLOOP BODY HTML...
Page 584: ...560 CFMLLanguageReference...
Page 594: ...570 CFMLLanguageReference...