Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Date picker issues with customer notes
02-12-2014, 07:39 AM
Post: #1
Date picker issues with customer notes
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
Find all posts by this user
Quote this message in a reply
02-15-2014, 03:04 AM (This post was last modified: 02-15-2014 03:26 AM by agaluski.)
Post: #2
RE: Date picker issues with customer notes
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?
Find all posts by this user
Quote this message in a reply
02-15-2014, 03:25 AM
Post: #3
RE: Date picker issues with customer notes
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
Visit this user's website Find all posts by this user
Quote this message in a reply
02-15-2014, 03:30 AM
Post: #4
RE: Date picker issues with customer notes
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
Find all posts by this user
Quote this message in a reply
02-15-2014, 04:42 AM
Post: #5
RE: Date picker issues with customer notes
These are the only two scripts that use type="date" so I think it's just a mistake, so yeah just change them.

Tim
Visit this user's website Find all posts by this user
Quote this message in a reply
02-15-2014, 09:22 AM
Post: #6
RE: Date picker issues with customer notes
Thanks for this spot Andrew - I will fix in the trunk.

Phil Daintree
webERP Admin
Logic Works Ltd
http://www.logicworks.co.nz
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)