Building Text Input Boxes - MACROMEDIA COLDFUSION MX 61-DEVELOPING COLDFUSION MX Develop Manual

Developing coldfusion mx applications
Table of Contents

Advertisement

size="8">
</cfselect>
<br><input type="Submit" value="Submit">
</cfform>
Save the file as selectbox.cfm and view it in your browser. The following figure shows the output
2
of this code:
Because the tag includes the
box. Also, because the
Employee IDs (not first names) get passed in the Form.Employee variable to the application page
specified in the
cfform action

Building text input boxes

The
cftextinput
CFML
cfinput type=text
alignment options, use the
validation methods or your own JavaScript validation function, and use the
force the user to enter or change text.
The following example shows a basic
which means that a user must enter a valid date in the form mm/dd/yy (the year can be up to four
digits). For a complete list of validation formats, see CFML Reference.
Create a ColdFusion page with the following content:
1
Please enter a date:<br>
<cfform name="Form1"
action="submit.cfm">
<cftextinput name="entertext"
value="mm/dd/yy"
maxlength="10"
validate="date"
width=100
font="Trebuchet MS">
<br>
<br>
<input type="Submit"
value="Submit">
</cfform>
594
Chapter 27: Building Dynamic Forms
attribute, the user can select multiple entries in the list
multiple
tag specifies Emp_ID, the primary key for the Employee table,
value
attribute.
tag in a
tag is similar to the HTML
cfform
tag. With
cftextinput
attribute to enable input validation using ColdFusion
validate
cftextinput
input type=text
, however, you can also specify font and
control. This example validates a date entry,
tag or the
attribute to
required

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION MX 61-DEVELOPING COLDFUSION MX and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Coldfusion mx

Table of Contents