Dreamweaver CS4 Resources
|
Insert ColdFusion hidden fields
You
can visually insert a ColdFusion hidden field into your form and
set its properties. Use hidden fields to store and submit information
that the user does not enter. The information is hidden from the
user.
Note: This enhancement is available only if you have access
to a computer running ColdFusion MX 7 or later.
- In Design view, place the insertion point inside
the form outline.
- In the CFForm category of the Insert panel, click the
CF Hidden Field icon.
A marker appears in the ColdFusion form. If you don’t see
the marker, select View > Visual Aids >
Invisible Elements.
- Select the hidden field on the page and set any of the
following options in the Property inspector:
- Cfhiddenfield
- Lets you specify the unique name for the hidden field.
- Value
- Lets you specify a value for the hidden field. The data
can 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.
- 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 control. This property
is ignored by the ColdFusion server at run time.
- 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.
This property is ignored by the ColdFusion server at run time.
- Width
- Lets you specify the width of the control, in pixels.
This property is ignored by the ColdFusion server at run time.
- Size
- Lets you specify the size of the control. This property
is ignored by the ColdFusion server at run time.
- Required
- Lets you specify whether the hidden 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.
|