Setting CFTextField properties (ColdFusion)

Setting CFTextField properties (ColdFusion)

Use this Property inspector to set the properties of a ColdFusion text field.

To set the CFTextField properties:

  • Set any of the following options in the Property inspector:

    CFtextfield sets the id attribute of the <cfinput> tag.

    Value lets you specify text to be displayed in the field when the page first opens in a browser. The information can either be static or dynamic.

    To specify a dynamic value, click the lightning bolt icon beside the Value text 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.

    Text Mode lets you switch between the standard text input field and the password input field. The attribute modified by this control is type.

    Read Only lets you make the displayed text read-only.

    Max Length sets the maximum number of characters accepted by the text field.

    Mask lets you specify a mask for your requested text. You use this property to validate the user input. The mask format is composed of A, 9, X and ? characters.

    Validate specifies the type of validation for the current field.

    Validate At specifies when the field is validated: onSubmit, onBlur or onServer.

    Label lets you specify a label for the text field.

    Pattern lets you specify a JavaScript regular expression pattern to validate input. Omit leading and trailing slashes. For more information, see the ColdFusion documentation.

    Height lets you specify the height of the control, in pixels.

    Width lets you specify the width of the control, in pixels.

    Size lets you specify the size of the control.

    Required lets you specify whether the text field must contain data before the form is submitted to the server.

    Display Tag Editor lets you edit properties not listed in the Property inspector.

Related topics

  • Inserting ColdFusion text fields

Getting Started with Dreamweaver
Dreamweaver Basics
Working with Dreamweaver Sites
Laying Out Pages
Adding Content to Pages
Working with Page Code
Preparing to Build Dynamic Sites
Making Pages Dynamic
Developing Applications Rapidly
Building ColdFusion Applications Rapidly
Building ASP.NET Applications Rapidly
Building ASP and JSP Applications Rapidly