SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 1102 | Next

Joseph W. Lowery

"Dreamweaver CS3 Bible"

TIP TIP
TIP TIP
619
Powering Ajax Pages with Spry 18
To insert a Spry Validation Select widget, follow these steps:
1. Place your cursor where you??™d like your text field to appear.
2. From the Spry or Forms categories of the Insert bar, choose Spry Validation Select.
3. If your Dreamweaver Preferences are set to display the accessibility attributes for form fields, the
Input Form Accessibility Attributes dialog is displayed; click OK after you??™ve completed the
desired fields.
4. If your cursor is not within a
tag, Dreamweaver asks if you??™d like to add one; click Yes.
5. From the Spry Select Property inspector (see Figure 18-19), choose whether a choice should be
required by setting or clearing the Blank Value checkbox.
FIGURE 18-19
Force the user to make a choice with the Spry Validation Select widget.
For the Blank Value option to work properly, you??™ll need to include one option, typically the top
one, with no value, like this:

6. If you want the form field to check the validation prior to submitting the form, select the Validate
On Blur or Change options.
7. If your form includes separators or other non-meaningful choices, select the Invalid Value option
and set the value to restrict in the adjacent field.


Pages:
1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114