Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » Custom Form Validation (in CMS)

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 773 Views
  • iculshaw
    Community Member
    13 Posts

    Custom Form Validation (in CMS) Link to this post

    I'm looking to make a comparison between two fields that exist on a form lets say they are called elementA and elementB; what i need is for a validator to check whether elementA < elementB and return false if it is with a nice pretty error.

    I modified ConfirmPasswordField and got the js errors working but the message didn't disappear when it validated and the second field didn't save in the database.

    the code used to instigate the attached file is as follows

    new SlotQuotaField("Slots")

    Thanks in advance

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.