The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
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

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

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"
    class="cf_datefield cf_datepicker" value="" /><img class="ui-datepicker-trigger" src="http://consideredresponse.netai.net/formtools/global/images/calendar.png" id="respondent_selection_icon_id" />
  <input type="hidden" id="respondent_selection_format" value="yy-mm-dd" />

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.

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.

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.