Hi,
I find a bug in 3.3.6 to select the date of birth of member
Is impossible in front end to select an older date as the date of the day
it's pity to select a date of birth
I don't see the solution in the Contao Changelog
Printable View
Hi,
I find a bug in 3.3.6 to select the date of birth of member
Is impossible in front end to select an older date as the date of the day
it's pity to select a date of birth
I don't see the solution in the Contao Changelog
Exemple : http://sportation.fr/fr/creer-son-co...Tennis&cgs=oui
Look 3th fields : date
How do you add the calendar to the form field. Are you using an extension?
In the JS Code for the initialization there is a 'minDate' defined.
I have 'mindate' but is a date of the day
Code:window.addEvent('domready', function() {
new Picker.Date($$('#ctrl_dateOfBirth'), {
'draggable': 'false',
'pickerClass': 'datepicker_bootstrap',
'useFadeInOut': '!Browser.ie',
'startDay': 0,
'titleFormat': '%B %d%o, %Y',
'minDate': new Date(2015, 1, 11),
'positionOffset': {x:0,y:0},
'format': '%d-%m-%Y'
});
});
Yep, "minDate" has to be removed ... howsoever it was added.
There is more discussed in the german commnuity board: https://community.contao.org/de/show...417#post358417
Correct mootools selector for element with ID is
$('ctrl_dateOfBirth')
http://mootools.net/core/docs/1.5.1/...#Window:dollar
Ok thanks,
I find the place to update line 169 in FormCalendarField.php
Code:<script>
window.addEvent('" . $jsEvent . "', function() {
new Picker.Date($('#ctrl_" . $this->strId . "'), {
" . implode(",\n", $arrCompiledConfig) . "
});
});
</script>";
But i always have a error message : Please enter a date in the future (including today).
What does your DCA configuration look like?
In DCA tl_member of this modules, I juste have :
i delete this code in FormCalendarField.php and is ok for the moment :Code:$GLOBALS['TL_DCA']['tl_member']['fields']['dateOfBirth']['inputType'] = 'calendar';
Code:/*case '+0':
if ($intTstamp < $objToday->dayBegin) {
$this->addError($GLOBALS['TL_LANG']['ERR']['calendarfield_direction_+0']);
}
break;*/