Jump to:

10994 Posts in 2728 Topics by 1819 members

All other Modules

SilverStripe Forums » All other Modules » UserForms Calendar on Date field

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 462 Views
  • Zyzzza
    Avatar
    Community Member
    25 Posts

    UserForms Calendar on Date field Link to this post

    Hi guys,

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

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: UserForms Calendar on Date field Link to this post

    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.

  • Zyzzza
    Avatar
    Community Member
    25 Posts

    Re: UserForms Calendar on Date field Link to this post

    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 ?

  • Zyzzza
    Avatar
    Community Member
    25 Posts

    Re: UserForms Calendar on Date field Link to this post

    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 ?

    462 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.