Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Multiple Spry Textfield Form Errors

Guest
Oct 24, 2007 Oct 24, 2007
I've been trying to figure out how to add multiple different types of errors to only ONE text field. I read in the LiveDoc all you have to do is insert a new span with the corresponding class identifier but it didn't give an example of how my widget would look like. I want this:

var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "none", {validateOn:["blur", "change"]});

combined with a min and max characters value AND a character counter. Is this possible?

Here's the included SPRY Script at the bottom of the page:
<script type="text/javascript">
<!--
var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "none", {validateOn:["blur", "change"]});
var sprytextarea1 = new Spry.Widget.ValidationTextarea("sprytextarea1", {validateOn:["blur", "change"]});
var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2");
var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3");
//-->
</script>
TOPICS
Extensions
690
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Aug 08, 2010 Aug 08, 2010
LATEST
I've been trying to figure out how to add multiple different types of errors to only ONE text field. I read in the LiveDoc all you have to do is insert a new span with the corresponding class identifier but it didn't give an example of how my widget would look like.

Try asking this question on the SPry forum:

http://forums.adobe.com/community/labs/spry

HTH,

Randy

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines