Buy Now
Sign in

CF6, how do I set a calendar starting date based on the user nput in another calendar field?

zingales , May 24 2017, 22:09
admin 27
April 16 2019, 16:25 #386035
Ok, the syntax was wrong, it should be:
{date:$(data:calendar1)+30days}
But the behavior may still not work as expected because the change event is not triggered for the calendar fields, that should be fixed in the next update though!
Best regards
Max
If your main question got answered then please mark the answer using the button!
Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
D
Dsign 29
April 16 2019, 17:35 #386037
Same CFG here,... But on my side, when i select a date on the first calendar... it does nothing at all.
admin 27
April 16 2019, 18:49 #386039
here is a demo form but as I noted it will not work correctly before the next update!
Attachments
double_calendar_16_Apr_2019_20_48_43.cf6bak
(3.97 KiB)
51 Downloads/Views
Max
If your main question got answered then please mark the answer using the button!
Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
admin 27
April 23 2019, 20:57 #386223
This should now work with the new update!
Best regards
Max
If your main question got answered then please mark the answer using the button!
Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
D
Dsign 29
April 24 2019, 00:58 #386229
The demo works!... but when i try the exact same setting on my forms... it reloads and doesn't show the second calendar anymore.
No hidden opt activated... and still not showing after reload,... weird isn't?
admin 27
April 24 2019, 12:06 #386269
In the page settings of the "reloaded" calendar, you need to set the page type to "standalone", did you do that ?
Max
If your main question got answered then please mark the answer using the button!
Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
D
Dsign 29
April 24 2019, 14:33 #386278
im working on classic v6 mode... and i don't see that page type option.
admin 27
April 24 2019, 20:36 #386283
What do you have in the reload event ? do you have {view:dropdown_view_name} ?
Max
If your main question got answered then please mark the answer using the button!
Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
D
Dsign 29
April 26 2019, 02:11 #386311
on classic v6 mode: it just says "reload"
D
Dsign 29
April 27 2019, 15:13 #386357
can i have the same working example using CFv6 Classic (im not comfortable with the 6.1v)
P
phoenix89r 5
May 09 2019, 21:11 #386701
Hi,
i've update chronoforms to 6.1 and now first calendar reloads the second one, but there is a problem:
the second calendar starts 15 days after today, not the date sets in first calendar
this is my configuration
I set the FIRST calendar events tab in this way:
on "change" actions=reload
Element(s) identifier=second_calendar_name.
In the SECOND calendar advanced tab I set:
Earliest date/time= {date:(data:first_calendar_name)$+15days}
start calendar=#calendar-1_ID
there is a problem in syntax? what did i do wrong?
thanks    
P
phoenix89r 5
May 09 2019, 21:37 #386702
I forgot to mention that in SECOND calendar "advanced" tab i set :
Reload event: reload
now i've updateted my form to 6.1 form structure, but now when I set date in the first calendar, it reloads the whole page ! what did i do wrong?
admin 27
May 11 2019, 21:21 #386794
You should replace "second_calendar_name" and "first_calendar_name" with the field name of the 2nd and first calendars!
Best regards
Max
If your main question got answered then please mark the answer using the button!
Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
admin 27
May 11 2019, 21:22 #386795
can i have the same working example using CFv6 Classic (im not comfortable with the 6.1v)
What exactly is not good in your opinion ?
Max
If your main question got answered then please mark the answer using the button!
Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!