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:

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Problem with TimeField in popup

Go to End

3 Posts   1978 Views


Community Member, 25 Posts

25 July 2010 at 1:18am

I have two DatetimeFields in a DOM-popup, among a few other fields like SimpleTinyMCEFields, a regular textfield and a nested hasmanyFileDOM. This worked as expected and nicely using SS 2.4.0. After upgrading to SS 2.4.1 the DatetimeFields only works halfway. The DateField works but the TimeField doesn't get the dropdown populated.

Firebug gives the error "Behaviour is not registrated". This is related to the TimeField_dropdown.js file. So obviously a js-problem. I have stared at the relevant code for some time now but i am not the man to debug this.

Removed all other fields in the popup, but no dice, same problem. Also tried a DatetimeField on a regular page and that works, so it seems to be an issue with loading it in a DOM-popup.



Forum Moderator, 4102 Posts

25 July 2010 at 2:11am

I don't think that form field is compatible with DOM. It's full of all kinds of legacy javascript garbage, unfortunately. It needs to be updated the way the date fields have.


Community Member, 19 Posts

28 January 2011 at 10:07am

I created a ticket for this, maybe someone can review the legacy javascript garbage :) Time dropdown can't be too hard.