Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

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.

Form Questions /

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

OnBlur of textfield validation


Go to End


2204 Views

Avatar
Elemental

Community Member, 8 Posts

9 July 2009 at 1:31am

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