Dreamweaver CS4 Resources
|
Insert and edit the Validation Confirm widget
Insert the Validation Confirm widget- Select
Insert > Spry > Spry Validation Confirm.
- Complete the Input Tag Accessibility Attributes dialog
box and click OK.
Note: You can also insert a Validation Confirm widget
by using the Spry category in the Insert panel.
Change required status of a Validation Confirm widgetBy default, all Validation Confirm
widgets that you insert with Dreamweaver require
user input when published on a web page. You can, however, make
the completion of confirm text fields optional for the user.
- Select a Validation Confirm widget in the Document
window by clicking its blue tab.
- In the Property inspector (Window > Properties),
select or deselect the Required option, depending on your preference.
Specify the text field to validate against- Select a Validation
Confirm widget in the Document window by clicking its blue tab.
- In the Property inspector (Window > Properties),
select the text field you want to validate against by selecting
a text field from the Validate Against pop-up menu. All text fields
with unique IDs assigned to them appear as options in the pop-up
menu.
Display widget states in Design view- Select a Validation Confirm
widget in the Document window by clicking its blue tab.
- In the Property inspector (Window > Properties),
select the state you want to see from the Preview States pop-up
menu. For example, if you want to see the widget in its valid state,
select Valid.
Specify when validation occursYou can set the point at which
validation occurs—when the site visitor clicks outside the widget,
as the visitor types, or when the visitor tries to submit the form.
- Select a Validation Confirm widget in the Document
window by clicking its blue tab.
- In the Property inspector (Window > Properties),
select the option that indicates when you want validation to occur.
You can select all of the options or Submit only.
- Blur
- Validates whenever the user clicks outside the confirm text
field.
- Change
- Validates as the user changes text inside the confirm text
field.
- Submit
- Validates when the user tries to submit the form. The submit
option is selected by default, and cannot be deselected.
|