Jump to:

3433 Posts in 1058 Topics by 734 members

Data Model Questions

SilverStripe Forums » Data Model Questions » Making CMS-Fields required

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

Page: 1 2 3
Go to End
Author Topic: 1052 Views
  • muskie9
    Avatar
    Community Member
    9 Posts

    Re: Making CMS-Fields required Link to this post

    I've been digging into this a bit more and am wondering if the getCMSValidator can handle complex rules or if it's just checking for a value. I looked through the validator class and it looks like it's just looking for any value. I know the EmailField has additional validation so I'll poke around there as a starting point to additional validation on a form field, but wanted to raise the question. I know in things like the CsvBulkLoader you can pass to functions for verification/object requests. Probably unrelated but would be cool to be able to have array('FieldName' => '->fieldValidationCheck') to set up perimeters.

    1052 Views
Page: 1 2 3
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.