Jump to:

22997 Posts in 11844 Topics by 2828 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: 276 Views
  • Chipie
    Avatar
    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() {
    parent::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?

    276 Views
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.