Jump to:

23490 Posts in 18996 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Form Validation

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 319 Views
  • Chipie
    Community Member
    16 Posts

    Form Validation Link to this post

    Hi all, I am trying to add some further validation to my registration form. I am using the memberprofiles module.
    I found this tutorial on SSbits, http://www.ssbits.com/tutorials/2009/using-jquery-for-form-validation/, and it asks users to remove Silverstripes built in JS validator by finding the following function:

    class ContactPage_Controller extends Page_controller{
    function init() {
    Validator::set_javascript_validation_handler('none'); }

    But it doesnt tell you which file this code is in?

    I have followed the rest of the tutorial and added the code to my page.php, however it doesnt seem to be working.

    I think its because I have to turn off the silverstripe JS validator?
    Anyone had this problem before? Or know where I can find the function?

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.