I can't seem to get this to work on any webforms in my site. I've tried changing themes just to make sure I didn't have a theme conflict, but still no good. I have many custom forms that I have made with the form api. Works great on those. But i get nothing on webforms.

I have the module set to validate all forms. I enabled it for the content type webform. I even manually added the webform form id to see if i could hit it specifically. Nothing. It always submits the page and returns with the normal errors.

Am I missing something? Could anyone give me a tip if I'm missing something?

Webform - 7.x-3.20
Clientside Validation - 7.x-1.39

CommentFileSizeAuthor
#3 Image1.png927.94 KBRAWDESK
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

attiks’s picture

Component: Form Validation » Webform Validation

Could you try with the latest dev version and see if you get any javascript errors (hit f12 and check the console tab)

xpersonas’s picture

I tried the latest dev version. I'm not seeing any errors. Same behavior.

Now I'm not entirely sure what all i have to do. I have it set to add validation to all forms except the following -

admin/structure/views/*
admin*
block*
node/*/edit
node/add/*

(but I did try removing these just in case it was somehow interfering - no luck)

I tried enabling validation on the content type page of clientside validation. I even tried using the webform form id on the custom forms page. All variations seem to have no effect.

RAWDESK’s picture

FileSize
927.94 KB

I was able to get it to work somehow for the second of 2 webforms on my frontpage, using version 7.x-1.41, showing me the error(s) on top of the form with smooth scrolling to the message region (see attached screenshot).
For the first webform i was struggling with :
1. have the validation clientside triggered (only triggered serverside)
2. have the messages shown on top of the form (they were shown on the general message area on top of my page after serverside validation)
Tried several combinations, even upgraded to latest alpha3 version but this version had several conflicts with already running JS functions, like smooth menu scroll using jQuery's animate() function, so it only got worse.
Uninstalled and reinstalled 7.x-1.41, but never reinstated my second working webform since, ... until i enabled MINIFIED VERSION OF JQUERY.VALIDATE.JS.
For my first webform, it tried to enable clientside validation through the custom form option by entering the (web)form's ID, but without success.
Hope this might help you and others.
If someone has a clue why only 1 form on a page is able to get validated client side, please share your comments. Thanks!