ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

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

mr.mauscat 15 Aug, 2017
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
mr.mauscat 03 Feb, 2018
Hi Everybody,
I still have this problem. Does somebody know how to solve it?
Regards,
Sebastian
This topic is locked and no more replies can be posted.

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com