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!

Open DatePicker showing a future date

hwsassisi 25 Feb, 2017
Dear all,
on Joomla 3.6.5, I created a form containing a DatePicker with the start-date as 10/08/2017 and the end-date as 20/08/2017.
All dates are disabled, execpt for dates between 10 and 20 august, but when I click on DatePicker to open the popup, it shows the current month (Febrary 2017 at time of writing) instead of the first available date.
How to force DatePicket to open its popup in another date than today?
Regards
GreyHead 25 Feb, 2017
Hi hwsassisi,

Please check the FAQs that Prof Calculus linked to. You do need to make sure that you have the dates in the correct format for CF to be able to read them.

Bob
hwsassisi 25 Feb, 2017
Hi Bob,
which tutorial are you referring to?
I have set stard-date and end-date in the correct format and "field value" is empty.
Dates are selecteable only in requested interval, but when I open calendar popup starting from an empty field value, the popup shows current month instead the first selectable date

Please, have a look to "check-in" field in http://www.hotelwindsorsavoia.it/it/umbria-in-moto.html page

Thanks
hwsassisi 25 Feb, 2017
In that page, valid dates are 24 and 25 of march, but when you open check-in date, febrary is shown
hwsassisi 26 Feb, 2017
Hi Bob,
Yes, I sow that faq, but it is not what I would like to do.
I would like to have an empty value in date-piker, then set start_date and end_date properties in my date-picker and finally to see my date-picker opening calendar from the month of the start_date I have set, not from the month of today.
I don't want to set any predefined value in my date-picker. I would like to leave it empty.
I need a "if-value-is-empty-then-on-click-show-calendar-popup-from-date dd/mm/yyyy" method/function/property/event
Regards
GreyHead 26 Feb, 2017
Hi hwsassisi,

OK, now I understand but I don't think that you can do that, the date picker and the value in the input box are linked and you can't easily have one without the other. It is perhaps possible to use some JavaScript to change the value of the input when the user clicks in it - I don't know if that would be fast enough to set the date-picker value though. Or you could try looking for another date-picker that allows you more control.

Bob
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