Buy Now
Sign in

Strange bug: Two times "This field is required" in double date picker

mr.mauscat , August 15 2017
M
mr.mauscat
Hi,

I have a bug (?) in the chronoforms5 double date picker.

Here is the link: http://www.info-namibia.com/accommodation/damaraland/damaraland-camp

I set up the double date picker (Start date - end date) with a documentation I found in the forums.

It loads the JS

jQuery(document).ready(function (jQ) {
jQ( '#dp_a' ).datepicker({
minDate: 1,
onSelect: checkDate,
dateFormat: "dd.mm.yy",
changeMonth: true,
changeYear: true
});

function checkDate(start_date, el) {
jQ( '#dp_b' ).datepicker('option', 'disabled', false);
jQ( '#dp_b' ).datepicker('option', 'minDate', start_date);
}

jQ( '#dp_b' ).datepicker({
numberOfMonths: 1,
dateFormat: "dd.mm.yy",
changeMonth: true,
changeYear: true
});

jQ( '#dp_b' ).datepicker('option', 'disabled', true);
});


Both date pickers are set to Validation:yes.

Problem: If you click on the first date picker and pick a data, the "Required" messages pops out (although you actually picked a date), If you click on the date picker again it disappears.

This only happened after upgrade to Joomla 3.4 I think.

Any ideas?

Kind regards,
Sebastian
M
mr.mauscat
Nobody?
M
mr.mauscat

Hi Everybody,

I still have this problem. Does somebody know how to solve it?

Regards,

Sebastian​