Problem with field Calendar

healyhatman 19 Mar, 2019
Don't know but scrolling down your page gave me 134 javascript errors.
healyhatman 19 Mar, 2019
If you search on the forums I had a solution for this a while ago. You'll probably want the keywords 'calendar' and 'modal' have to go out right now.
GreyHead 19 Mar, 2019
Hi zeus,

If I show the form in the page by removing the display:none CSS then the calendar works. It does not work in the FancyBox pop-up - my best guess is that the necessary JavaScript files are not available in the pop-up though I don't see why that is.

Bob
healyhatman 19 Mar, 2019
I think you have to tell the G2.boot.js script to run when you open the modal. Like I said I had a solution on the forums somewhere.
healyhatman 19 Mar, 2019
https://www.chronoengine.com/forums/posts/t106011/date-picker-in-modal-window-doesnt-work here you go
healyhatman 19 Mar, 2019
Is calendar8 actually the ID of the calendar, or the name? Any errors in console?
zeus07 19 Mar, 2019
ID's for both calendars are right. I don't have errors in console

Calendar8 and Calendar9 are ID and name
zeus07 19 Mar, 2019
Do you have another ways to fix calendar in fancybox popup?
healyhatman 19 Mar, 2019
So it's not the normal modal, it's a different 3rd party one?
zeus07 19 Mar, 2019
This is plugin Fancybox for Joomla
zeus07 20 Mar, 2019
In console I don't have any errors...Maybe some JS not loaded and it need connect manually?
Max_admin 21 Mar, 2019
The next update should solve the issue of the calendar not loading in the modal, usually the problem is that the modal move the dom content and that breaks the calendar!

Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
peppelaria 13 Jul, 2019
Hi Max. I'm trying to have calendar field work with popup mode in a modal, but it doesn't work.

There's a workaround for this?

Thanks for your help
Max_admin 15 Jul, 2019
Please try to disable the "Detachable" option in the modal settings!

best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
peppelaria 15 Jul, 2019
I Max. It solves the popup problem, but the modal appear behind the dimmer and not centered with the view. To solve this issue I wrote some css:
.modal {display:flex, margin-top: -50%; margin-right:auto;margin-left:auto;}

The modal appear almost correctly but I'm having some problem on center it vertically.




Any suggestion about this?
Max_admin 16 Jul, 2019
Does your template have any modal classes defined ? because that may be the problem.

Does the form work fine in the admin area preview ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
peppelaria 16 Jul, 2019
Thank you Max. Tomorrow I will try and let you know.
This topic is locked and no more replies can be posted.