<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">
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:
- date -- Verifies US date entry in the form mm/dd/yyy.
- 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 or9-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.
|