Calendar start and end dates

4Summit 18 Apr, 2019
Hello, How do I set the calendar so that the available date range is today and to a value from the variable from the database?

I looked through the various FAQs and other forum updates, but this one has stumped me.

I went to the advanced setting and used the {date:Y-m-d} in the earliest date/time and {date:Y-m-d$(var:read_milestone.end_dt)} and latest date/time , but seems to have no impact on the calendar. The real and display format is YYYY-MM-DD.

Please help.
healyhatman 18 Apr, 2019
shouldnt it be read_milestone.MODEL.end_dt
4Summit 19 Apr, 2019
correct. I fixed it, but still not seeing any change to the calendar.
Max_admin 19 Apr, 2019
The earliest date works ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
4Summit 19 Apr, 2019
hey Max, the earliest date is not working either. This sounds so simple, I must be doing something wrong.
Max_admin 22 Apr, 2019
This is strange, can you produce the issue on a simple form and attach it here for testing ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
4Summit 23 Apr, 2019
Please see a simple test where i tried to create a calendar where the only days i wanted to be available in between today and 10 days from now. However, when the calendar renders , all days are available for users to select.[file=12112]Calendar_Test_23_Apr_2019_05_11_43.c6bak[/file]
healyhatman 23 Apr, 2019
Any errors in console? Because it's working for me with {date:Y-m-d$+10 days}
4Summit 26 Apr, 2019
No errors in the console. The behavior I get is a calendar where the user can choose any dates in the past or future.
1) are you able to upload a simple example that works for you so that I can test it?
healyhatman 26 Apr, 2019
I literally just put that in the "earliest date/time" setting.
4Summit 27 Apr, 2019
I did the same exact thing and the calendar now shows Jan 2010 and earlier. I made sure i have the latest versions of Chronoforms and Chronoconnectivity modules and extensions. I am not sure why this is not working for me. it would be helpful if someone can upload a simple working version of the calendar that allows the users to select dates from today to 30 days from today.
healyhatman 27 Apr, 2019
Screenshot your settings please
Max_admin 27 Apr, 2019
[file=12135]today_and_30_days_27_Apr_2019_21_15_11.cf6bak[/file]
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
4Summit 28 Apr, 2019
Thanks Max. Your Chronoforms example works for me. However I am trying to do this using Chronoconnectivity and it does not work there.

Please see attached screen shots. Should I be installing any modules to get this working in CC V6?[file=12139]Calendar_Test_28_Apr_2019_15_23_16.c6bak[/file]
Max_admin 28 Apr, 2019
1 Likes
Your field is not called inside a Form Area, please try this ?

Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
4Summit 28 Apr, 2019
Hi Max,
The calendar field is called from inside a Form Area. It almost looks like the functionality that is available within CF is somehow not getting activated within CC.
Max_admin 29 Apr, 2019
Your screenshot shows that the field is not inside a form area because its height is not correct, are you sure its inside a form ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
4Summit 30 Apr, 2019
Sorry Max, the calendar field that I used in my CC is within the Form Area. The simple example i created to recreate the issue was not in the Form Area. I included it in the Form Area and still get the same behavior. Please see attached.[file=12144]Calendar_Test_29_Apr_2019_22_07_49.c6bak[/file]
healyhatman 30 Apr, 2019
{date:Y-m-d} NOT {date:y-m-d}
4Summit 30 Apr, 2019
I changed it to {date:Y-m-d} and it did not result in any change in behavior. Please see screen shot. Again this is in CC v6. This works in CF v6. Any other suggestions on how to get this functionality in CC V6?[file=12147]Calendar_Date_Test_6.PNG[/file]
healyhatman 30 Apr, 2019
Working perfectly for me. You can PM me login details and I'll take a look, or screenshot your event and your Form setup.
Max_admin 30 Apr, 2019
please attach a connection backup!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
4Summit 01 May, 2019
[file=12152]Calendar_Test_30_Apr_2019_21_01_56.c6bak[/file]
Please see the connection backup attached.
healyhatman 01 May, 2019
Some seriously weird bug here Max. If you put {date:} BEFORE the form view in the index event it shows the date, but if you put if after it just shows the shortcode text.
healyhatman 01 May, 2019
<input autocomplete="off" data-validationrules="{&quot;identifier&quot;:&quot;calendar1-main&quot;,&quot;rules&quot;:[{&quot;type&quot;:&quot;required&quot;,&quot;prompt&quot;:&quot;Calendar&quot;}]}" data-validate="calendar1-main" data-firstday="0" data-startmode="day" data-type="date" data-dformat="YYYY-MM-DD" data-sformat="YYYY-MM-DD" data-mindate="2019-05-01" data-maxdate="{date:Y-m-d$+2 days}" data-opendays="" data-openhours="" data-startcalendar="" data-endcalendar="" data-size="" data-inline="0" data-popuppos="top center" data-ampm="1" placeholder="" name="calendar1" id="calendar1" value="" type="text" data-calendar="1" class="">
So the first setting, for the mindate is parsed correctly but as you can see the maxdate just has the shortcode literal text unparsed.
Max_admin 04 May, 2019
The calendar field is inside "Form area" view ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
healyhatman 04 May, 2019
Yep, tested it on a new connection in a form view. Behaviour as described.
Max_admin 04 May, 2019
Thank you, fixed in the next update!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
4Summit 05 May, 2019
Thanks Max. Do you happen to know the timeline for the next update?
Max_admin 06 May, 2019
Answer
It's now available!

Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
4Summit 07 May, 2019
1 Likes
This works! Appreciate it very much, Max.
This topic is locked and no more replies can be posted.