Jump to:

3460 Posts in 1064 Topics by 739 members

Data Model Questions

SilverStripe Forums » Data Model Questions » extended Validator and using get CMSValidator

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

Page: 1
Go to End
Author Topic: 337 Views
  • Anjana
    Avatar
    Community Member
    1 Post

    extended Validator and using get CMSValidator Link to this post

    I need to validate minimum price that can be included when saving. how do i create a extender validation for this using CMSValidator

  • lx
    Avatar
    Community Member
    82 Posts

    Re: extended Validator and using get CMSValidator Link to this post

    Hi anjana,

    You could take a look at
    Github.com/lx-berlin/NetefxValidator

    The module includes rules for numeric validations.
    For example:
    $rule_Persons_Max = new NetefxValidatorRuleSMALLEREQUAL ("Persons", "Our flats are suitable for at most six persons", 'error', '6');

    I didnt test it with the final 3.1 release. But i would expect that it runs without problems.
    So if you are using 3.1 please let me know if the module has problems with 3.1

    The documentation is available here: http://netefx.de/Silverstripe-NetefxValidator.php

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