Developer forum

Forum » CMS - Standard features » Forms validation

Forms validation

Mikkel Toustrup Olsen
Reply

Hey all,

Im working on a quite old solution (19.2.9.9) in which i have the Forrms(DW7) installed.

I am trying to enable the DW validation, by checking the required checkbox for fields such as email, phone etc. Hereafter  I set the module template to default_validation.html and the javascript file to System/validation.js. However, it does not come up with any error messages when I try to submit the form - it redirects me, perfectly, to my confirmation page.

Do I have to implement my own custom validaiton in order to accomplish this? - I've given the jquery.validate a though, however I want to use the functionality provided by DW if possible :)

/MikkelTO


Replies

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Hi Mikkel

Have a look at this thread. http://developer.dynamicweb-cms.com/forum/templates/forms-for-datalists-two-input-fields-with-password-how-to-check.aspx

Download the .js and template from that thread and use it on your solution. Otherwise go into console and see what javascript errors occurs.

Nicolai

Votes for this answer: 1
 
Mikkel Toustrup Olsen
Reply

Hi Nicolai,

I actually got it to work with default_validation.html & the .js file. However i am in a biggy since I need to set a specific action (tracking url) to the form, which messes up the confirmation redirect afterwards. I think I need to use jquery for this. However, I read the thread you refered to and will save that for future reference. Thanks

 

 

You must be logged in to post in the forum