datepicker problem

ad admin_wiky 03 Aug, 2015
Hi all,

I found out a bug in datepicker element. When I dont choose a date in datepicker field, save data and then open for edit, then date is 0000-00-00 and cant change the value.
[attachment=0]ScreenShot829.jpg[/attachment]

any idea how fix it?
thx
Jozka
ad admin_wiky 03 Aug, 2015
Thank you, but I cannot find mentioned files in the FAQ - files dont exist
Gr GreyHead 03 Aug, 2015
Hi Jozka,

Please post a link to the form so I can take a quick look.

Bob
ad admin_wiky 04 Aug, 2015
Hi Bob,

http://portal.wiky.cz/portal2/index.php?option=com_chronoforms5&chronoform=edit_him

Thx
Gr GreyHead 04 Aug, 2015
Hi Jozka,

Both datepickers look OK from here (I checked in Chrome and FireFox), though they do show up in English.

Bob
ad admin_wiky 05 Aug, 2015
Hi Bob,

of course that it looks fine if u do a new record, but if u open existing record where wasnt fill in date then it show a mistake.
here is link to CC where u can open existing records a try:
Evidence HIM

thank you
Gr GreyHead 05 Aug, 2015
Answer
Hi Jozka,

I think that the fix is not to have 0000-00-00 in your empty fields. If they are empty then the date-picker works correctly. Either don't save them in the database or use a Custom Code action to replace '0000-00-00' with '' before displaying the form.

Bob
This topic is locked and no more replies can be posted.