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.
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.
shouldnt it be read_milestone.MODEL.end_dt
The earliest date works ?
hey Max, the earliest date is not working either. This sounds so simple, I must be doing something wrong.
This is strange, can you produce the issue on a simple form and attach it here for testing ?
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]
Any errors in console? Because it's working for me with {date:Y-m-d$+10 days}
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?
1) are you able to upload a simple example that works for you so that I can test it?
I literally just put that in the "earliest date/time" setting.
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.
Screenshot your settings please
[file=12135]today_and_30_days_27_Apr_2019_21_15_11.cf6bak[/file]
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]
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]
Your field is not called inside a Form Area, please try this ?
Best regards
Best regards
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.
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.
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 ?
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]
{date:Y-m-d} NOT {date:y-m-d}
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]
Working perfectly for me. You can PM me login details and I'll take a look, or screenshot your event and your Form setup.
please attach a connection backup!
[file=12152]Calendar_Test_30_Apr_2019_21_01_56.c6bak[/file]
Please see the connection backup attached.
Please see the connection backup attached.
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.
<input autocomplete="off" data-validationrules="{"identifier":"calendar1-main","rules":[{"type":"required","prompt":"Calendar"}]}" 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.
The calendar field is inside "Form area" view ?
Yep, tested it on a new connection in a form view. Behaviour as described.
Thank you, fixed in the next update!
It's now available!
Best regards
Best regards
This topic is locked and no more replies can be posted.