Jump to:

1970 Posts in 1275 Topics by 607 members

Form Questions

SilverStripe Forums » Form Questions » OnBlur of textfield validation

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

Page: 1
Go to End
Author Topic: 1241 Views
  • Elemental
    Avatar
    Community Member
    8 Posts

    OnBlur of textfield validation Link to this post

    Hi all,

    Is there a way for validation to be done differently instead of using the onblur of a textfield?

    I am trying to validate a form, but only want it to validate on submit or onblur (regardless of whether the textfield has values or not).

    Currently the validation only seems to kick in once the onblur of a textfield event is triggered AND the field is empty (if its a required field).

    Please advise.

    thanks
    Elemental
    http://www.elemental.co.za

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