Client-side Validation

Hi,


I'm just wondering how you get the Custom Form Client-side validation working? We have selected that option for the form in question but there doesn't appear to be any javascript created to implement this.



Is there something we need to do in regards to the design or perhaps a keyword that needs to be included in the Page bodycopy?



Cheers

I found the bug this related to: http://bugs.matrix.squiz.net/view_bug.php?bug_id=391

I just checked and it seems you are running version 3.2.0; the bug that was stopping client side validation from appearing for complex formatted forms was fixed in the version 3.2.1 upgrade (and therefore, the current 3.2.2 release as well).

Thanks Luke,


Does it fix the problem related to complex formatting and Server-Side Validation too? ie this bug: http://bugs.matrix.squiz.net/view_bug.php?bug_id=314



Edit: Trust me for not reading fully. The bug report says it has not been added to the current stable release due to extra functionality.



Cheers

Just so you are aware, that particular bug fix/feature upgrade will make it into the next major stable version, 3.4.0 (which should be due in a month or two, depending on the progress of the RC phase). Cheers :slight_smile:

Thanks again, Luke :slight_smile:

3.4.0 is due on the 7th March.

Hello,


Was just wondering if this problem got fixed already coz I still couldn't get client-side validation to work? Had tried:


  1. Switched on client-side validation, with a complex rule inserted.
  2. Switched off client-side validation, inserted javascript tag into raw html in wysiwyg which took away all inserted contents & keyword. The commit button disappeared after that.
  3. Switched on server-side validation, listed %form_errors% on page contents but when preview, nothing was displayed?
  4. Switched on client-side validation, created a .javascript file; uploaded onto system, linked javascript to custom form. Not sure if this works, I've edited the javascript file to have the current page name, but as for a particular field of (eg. Id: #8893:q11) how do I put that down on the .javascript?



    The basic thing I'm trying to work out is that the user needs to select an option from a drop down list otherwise display message.



    Has anyone who had this problem before managed to get this working?

    Thank you!