Login | Forgot password | Register

X

What is OpenID?

OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.

With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.

For more information visit the official OpenID site.

Jump to:

17478 Posts in 4473 Topics by 1972 members

Archive

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

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

Page: 1
Go to End
Author Topic: Custom Form Validation (in CMS) 266 Views
  • iculshaw
    avatar
    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

    266 Views
Page: 1
Go to Top

Currently Online: paul.mcilwaine, motly, jondbaker

Welcome to our latest member: fearofbuttons

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.