Operation Manual
437
USING DREAMWEAVER
Building Spry pages visually
Last updated 3/28/2012
Valid state When the user enters information correctly, and the form can be submitted.
Invalid state When the user enters text that does not match the text entered in a previous text field, Validation Text
Field widget, or Validation Password widget.
Required state When the user fails to enter required text in the text field.
For a more comprehensive explanation of how Validation Confirm widgets work, as well as additional information
about widget structure, see
www.adobe.com/go/learn_dw_spryconfirm_en.
More Help topics
Validation Confirm widget samples
Insert and edit the Validation Confirm widget
Insert the Validation Confirm widget
1 Select Insert > Spry > Spry Validation Confirm.
2 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.
More Help topics
“Create accessible HTML forms” on page 638
Change required status of a Validation Confirm widget
By 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.
1 Select a Validation Confirm widget in the Document window by clicking its blue tab.
2 In the Property inspector (Window > Properties), select or deselect the Required option, depending on your
preference.
Specify the text field to validate against
1 Select a Validation Confirm widget in the Document window by clicking its blue tab.
2 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
1 Select a Validation Confirm widget in the Document window by clicking its blue tab.
2 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 occurs
You 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.
1 Select a Validation Confirm widget in the Document window by clicking its blue tab.