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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

All other Modules /

Discuss all other Modules here.

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

Userforms date validation not working

Go to End

9 Posts   4543 Views


Community Member, 470 Posts

19 November 2013 at 3:03am

Funny that about a year ago I was the last to post in this topic when I wasn't even having issues with the bug, and now I've come across it too.

I'm using 3.1 and have the same issue as being reported here though it only happens when using IE7/8, all other browsers are fine.

I had a DateField that was required. If a user picked the date with the calendar option in IE7/8 and submitted the form, the JS validation gave an error saying the field is required, even though it is filled in. I've changed the field to not required for an easy fix I thought, but the same error happens.

I'll try deleting the field and readding it, as RuthAdele says that fixes the issue, but does anybody have a fix? I have about 10 forms with custom CSS layout this affects, so slightly annoying to go change them all.

Here is the html source of the datefield being outputted.

The date is being filled in as yyyy-MM-dd and no matter what I put in i18n::set_date_format(); the format doesn't change.

But like I said, works in all browsers except ie7/8, which I find really weird.

Go to Top