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.

All other Modules /

Discuss all other Modules here.

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

UserForms Calendar on Date field


Go to End


4 Posts   966 Views

Avatar
BP

Community Member, 25 Posts

27 September 2011 at 11:26am

Hi guys,

COuldn't find for any solution for implementing js Calendar on Date field in UserForms. Would be glad for any help !

Avatar
Willr

Forum Moderator, 5523 Posts

27 September 2011 at 7:26pm

The jQuery UI date picker is in there by default. Make sure you're using the 'Date' field and you haven't got any other JS errors on your page.

Avatar
BP

Community Member, 25 Posts

5 October 2011 at 12:14am

Edited: 05/10/2011 12:36am

Hi Willr -

I'm using the Date field indeed. No errors are displayed. But I cant see anyj Query UI date picker loading or something. Can you please check if it loads or give me a hint where should i look for troubles ? http://supersalonas.lt/uzsirasyti-pas-kirpeja/ (the last fielsd on the form)

Thanks

UPD: I figured out with firebug that none of JS files are loading ... the init() method works fine, however it somehow ignores

Requirements::javascript(SAPPHIRE_DIR .'/thirdparty/jquery/jquery.js');
Requirements::javascript('userforms/thirdparty/jquery-validate/jquery.validate.min.js');

Any ideas ?

Avatar
BP

Community Member, 25 Posts

5 October 2011 at 12:55am

OK, my fault :)

However very strange - i had some menu controls in menu HTML commented like:

<!-- <%control blahblah %> somecode <% end_control %> -->

And somehow all requirement where appearing in between those comments tags, thus not loading ....

Everything works fine , thanks !

PS - is it possible to change the staring day from Sunday to Monday ?