User Guide

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: