PDA

View Full Version : Include other spry validation fields


jcrockett300688
12-15-2009, 11:40 AM
I just bought the solution pack so I could easily add some security to my forms. It seems that you can add new form fields but when I use the spry validation from Dreamweaver on the added fields, the validation doesn't work. I can get the CAPTCHA to work but any validation from DW doesn't work. Is there any way around this? Can CAPTCHA work without messing up the DW validation? Or am I doing something wrong???

Eric Mittman
12-16-2009, 11:47 AM
On the contact forms there are spry validations already in place, so there should not be any issues adding your own to new form elements. What are the steps you are taking to add the spry validation to your new form elements?

jcrockett300688
12-16-2009, 12:56 PM
I found out what the problem was:
Among the misc. code that was copied from the supplied contactus.php form into my new form, this code was the problem:
<form action="" method="post" name="emailContact" id="form1" onsubmit="">

I removed the onsubmit="" and it works as expected.

Eric Mittman
12-16-2009, 03:54 PM
Good catch, the empty onSubmit should not have any effect but obviously it does in this case. I'm glad to hear that you got it worked out.