Spry

Change required status of a select list

By default, Validation Select widgets require the user to make a selection before submitting the form. You can, however, make selections optional for the user.

 To change the required status of a select list, add the isRequired property to the constructor and set its value to false, as follows:
<script type="text/javascript">
	var selectwidget1 = new Spry.Widget.ValidationSelect("selectwidget1", {isRequired:false});
</script>

Comments

Comments are no longer accepted for Spry 1.4. Spry 1.6 is the current version. To discuss Spry 1.4, please use the Adobe forum.

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/en_US/Spry/1.4/WS3B1828FE-DADB-46d1-BAB2-6B76FE2DB2B7.html