27 March 2009 at 4:45am
I have a contact (userdefined form) and a newsletter signup ($SignUpForm) on the same page. The validation is messy. When you hit submit on the contact form, an error message appears 'object does not support this property or method' and the form validation fields turn from strings to 'EditableEmailField3 is required'.
8 April 2009 at 2:18am
(Last edited: 8 April 2009 2:19am),
I had this issue to and didn't find a way to have the SS validator working on two form siultaniously so I just disabled it from one of them changing the id of the <form> element from 'Form_Form' to 'QuestionForm' using a line of jQuery: $('#questionForm form').attr('id', 'QuestionForm');
I then wrote a simple jQuery validator to replace it on that form.
19 May 2009 at 5:07am
(Last edited: 19 May 2009 5:10am),
if you look at my [url=http://ssbits.com/creating-a-simple-contact-form/]tutorial for creating a simple contact form[/url] in part 2 you will see a bit where we define $validator[ with the names of the fields we want to be validated. Then you just pass this into the Form() function as an argument and that's it, validation added :)
EDIT: actually I think I misunderstood your question......not entirely sure what you mean, you don't want to add a required field but you do want it to be validated? I'm confused :s
I actually do have a required field that I also need to add some more validation to. Specifically, I have a phone number field that is required and I also need to make sure the field has at least 10 digits to it.
Everything works perfectly, except now I need to add the extra validation for the 10 digits on the phone #.
I'll check out the tutorial. Thank you for responding. I'm (I pray) down to the last 10 items that the client is asking for and I can go live. (first SS project)