I need to validate minimum price that can be included when saving. how do i create a extender validation for this using CMSValidator
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
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