The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
Defaults for the Datepicker - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: Defaults for the Datepicker (/showthread.php?tid=2967) |
Defaults for the Datepicker - grahame - Mar 24th, 2014 Hi When specifying a date field when creating an Internal Form the date picker only offers dates going back 10 years? Since I want a date-of-birth field how can I alter this behaviour please? I did find this thread: http://forums.formtools.org/showthread.php?tid=2217 but it did not appear to work for me? Thanks RE: Defaults for the Datepicker - grahame - Mar 29th, 2014 (Mar 24th, 2014, 8:48 AM)grahame Wrote: Hi Anyone know how to do this please? RE: Defaults for the Datepicker - kaamil20 - Mar 31st, 2014 Yes it is always default. RE: Defaults for the Datepicker - grahame - Apr 13th, 2014 Hi I still need help with this please. The Date field I have does not appear to use the Datepicker as described in thread 2217. In fact, the page with the date widget is rendered thus:- Code: <input type="input" name="respondent_selection" id="respondent_selection_id" I have looked everywhere for this... css sheets, scripts, php and the field setting tables in MySQL..... I am at a loss? How do I change the range of years for this please??? RE: Defaults for the Datepicker - Joe - Apr 14th, 2014 Hey Grahame, This is the script that we use for the data picker: http://trentrichardson.com/examples/timepicker/ Here are more details on formatting the date: http://api.jqueryui.com/datepicker/ Hope this helps. Cheers, Joe RE: Defaults for the Datepicker - grahame - Apr 15th, 2014 Thanks for the update Joe. Actually, I may have been victim to Safari's cache?.... I have rebuilt my site and amended the year range again (i.e. the script parameters as in thread 2217). As if by magic, I now get the specified range of years. The only thing I think I have done differently is to clear Safari's cache. Thanks again. RE: Defaults for the Datepicker - bill09 - May 8th, 2015 (Apr 15th, 2014, 3:53 AM)grahame Wrote: Thanks for the update Joe. Hi, I got mine to work but I had to change BOTH js files found here: formtools/mysite/themes/default/scripts/jquery-ui-1.8.6.custom.min.js AND formtools/mysite/themes/default/scripts/jquery-ui.js Change yearRange:"c-10:c+10" to yearRange:"c-100:c" in both files. Hope this helps. |