Adobe 38040334 - Dreamweaver CS3 User Manual page 684

Pc
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

Insert ColdFusion text fields
You can visually insert a ColdFusion text field or password field into your form, and then set its options.
Note: This enhancement is available only if you have access to a computer running ColdFusion MX 7 or later.
Visually insert a ColdFusion text field
In Design view, place the insertion point inside the form outline.
1
2
In the CFForm category of the Insert bar, click the CF Text Field icon or select Insert > ColdFusion Objects >
CFForm > CFtextfield.
A text field appears in the form.
Select the text field and set its properties in the Property inspector.
3
To label the text field on the page, click beside it and enter text for the label.
4
Visually insert a password field
1
Repeat steps 1 and 2 in the previous procedure for inserting a text field.
Select the inserted text field to display its Property inspector.
2
3
Select the Password value from the Text Mode pop-up menu in the Property inspector.
CFTextField options (ColdFusion)
To set the options of a ColdFusion text or password field, set any of the following options in the CFTextField Property
inspector:
Sets the
attribute of the
CFtextfield
id
Lets you specify text to be displayed in the field when the page first opens in a browser. The information can
Value
either be static or dynamic.
To specify a dynamic value, click the lightning bolt icon beside the Value box and select a recordset column in the
Dynamic Data dialog box. The recordset column supplies a value to the text field when you view the form in a
browser.
Lets you switch between the standard text input field and the password input field. The attribute
Text Mode
modified by this control is
type
Lets you make the displayed text read-only.
Read Only
Sets the maximum number of characters accepted by the text field.
Max Length
Lets you specify a mask for your requested text. You use this property to validate the user input. The mask
Mask
format is composed of A, 9, X and ? characters.
Note: The mask attribute is ignored for the cfinput type="password" tag.
Specifies the type of validation for the current field.
Validate
Specifies when the field is validated: onSubmit, onBlur or onServer.
Validate At
Lets you specify a label for the text field.
Label
Lets you specify a JavaScript regular expression pattern to validate input. Omit leading and trailing slashes.
Pattern
For more information, see the ColdFusion documentation.
Lets you specify the height of the control, in pixels.
Height
tag.
<cfinput>
.
September 4, 2007
DREAMWEAVER CS3
677
User Guide

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents