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.

Archive /

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

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

CalendarDateField front-end error


Go to End


2 Posts   1606 Views

Avatar
StuM

Community Member, 59 Posts

30 September 2008 at 4:28pm

Edited: 30/09/2008 4:44pm

Hi All,

I've added a CalendarDateField to a front end form, but it doesn't work, seems it's not loading all of the required Javascript files. it only loads:

Requirements::javascript("jsparty/calendar/calendar.js");
Requirements::javascript("jsparty/calendar/lang/calendar-en.js");
Requirements::javascript("jsparty/calendar/calendar-setup.js");

but it needs more, behaviour.js for example. I added behaviour manually through the form, and it's complaining about other missing JavaScript.

Has anybody else come across this, and have a list of files required to make it work???

Avatar
StuM

Community Member, 59 Posts

30 September 2008 at 4:44pm

OK, solved myself, just added prototype as well and it works