webERP Forum
Date picker issues with customer notes - Printable Version

+- webERP Forum (http://www.weberp.org/forum)
+-- Forum: webERP Discussion (http://www.weberp.org/forum/forumdisplay.php?fid=1)
+--- Forum: Problems / Bugs? (http://www.weberp.org/forum/forumdisplay.php?fid=8)
+--- Thread: Date picker issues with customer notes (/showthread.php?tid=2096)



Date picker issues with customer notes - agaluski - 02-12-2014

Can't seem to get past date validation or use the data picker in AddCustomerTypeNotes.php and AddCustomerNotes.php
"Please enter date in format of" even if I select date from date picker



RE: Date picker issues with customer notes - agaluski - 02-15-2014

Update. This issue only happens in google Chrome. I have 2 different date pickers available in that Browser (Browser date picker and WebERP date picker). It works ok in IE and Firefox because they do NOTO recognize the HTML Element and fallback to "text".
I noticed the two programs "AddCustomerNotes.php" and "AddCustomerTypeNotes.php" both use the new input type="date" HTML 5 element. They are the only 2 programs that seem to use them.
Chrome's date picker is different that the WebERP default.
Unless all date fields are converted to input type="Date" I would say we shouldn't use the input type since it yields different experience across browsers.
Anybody else have any thoughts on this?





RE: Date picker issues with customer notes - Forums - 02-15-2014

This is because Chrome implements it's own date picker for form items of HTML5 type of date. You can get around it by changing that type back to text. It seems to me to be wrong of Google to do this, as other browsers aren't at the moment doing it, and any application or site that implements its own date picker (and most will do) will break using Chrome.

A possible work around is to have an small button to the right of the input box that shows the webERP date picker, and take out the event handler that currently shows our date picker. This would at least work in all browsers.

Tim


RE: Date picker issues with customer notes - agaluski - 02-15-2014

Seems like we are on the same page and posted around the same time the issue. Locally I am making the change back to "text" in my 2 programs for now


RE: Date picker issues with customer notes - Forums - 02-15-2014

These are the only two scripts that use type="date" so I think it's just a mistake, so yeah just change them.

Tim


RE: Date picker issues with customer notes - phil - 02-15-2014

Thanks for this spot Andrew - I will fix in the trunk.