Jump to:

10979 Posts in 2722 Topics by 1815 members

All other Modules

SilverStripe Forums » All other Modules » memberprofiles validation of added field

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 431 Views
  • nicanor
    Avatar
    Community Member
    15 Posts

    memberprofiles validation of added field Link to this post

    I added a field a field "Accept Terms" like it is descriped here:
    http://deadlytechnology.com/silverstripe/membership-module/

    But there is no error shown when they checkbox is not selected. I choosed requiered for the field in BE. Email is send with Activation Key. Now when the User tries to activate, comes up an error "Page not found".

    Does anybody know how to validate if the checkbox "Accept Terms" is checked directly in the form?

    Here my Seller Class:

    <?php
    class Seller extends DataObjectDecorator{
       function extraStatics(){
          return array(
             'db' => array(
                'AcceptTerms' => 'Boolean'
             )
          );
       }
    }
    ?>

    And the line in config:

    Object::add_extension('Member', 'Seller');

    431 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.