NetTalk Central

Author Topic: Optional date cannot be entered  (Read 3440 times)

Gordon Holfelder

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
    • Email
Optional date cannot be entered
« on: January 06, 2011, 02:04:14 PM »
Hi There-

If I have a date field in a form that is not required, there is no way to leave the date blank. Today the default is 2010/01/01. To see this, change Web31 so that there is not valid date range required for invoice date. You just can't get a blank date in.

Thanks!
Gordon

Gordon Holfelder

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
    • Email
Re: Optional date cannot be entered
« Reply #1 on: January 06, 2011, 02:45:20 PM »
Also, if you have a chance to look at this, the CreateDateInput method doesn't appear to populate the class information into the form when the date field is readonly. In the attached sample the form is being viewed. All the fields are styled properly, except the date field. When I look at the form through firebug, there doesn't appear to be any class settings on the date field.

Thanks again,
Gordon

[attachment deleted by admin]

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Optional date cannot be entered
« Reply #2 on: January 11, 2011, 03:42:25 AM »
>> You just can't get a blank date in.

hmm - I removed the validation on the date, and then cleared the date field, and it saved ok Gordon. (except for the "place holder" of course). So perhaps I've fixed this already, or perhaps I'm missing some detail?

Cheers
Bruce

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Optional date cannot be entered
« Reply #3 on: January 11, 2011, 03:46:05 AM »
ahh - I have duplicated - I was running the example in Page mode, not popup mode. It only does this in popup mode - I'm investigating further.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Optional date cannot be entered
« Reply #4 on: January 11, 2011, 04:19:33 AM »
>> If I have a date field in a form that is not required, there is no way to leave the date blank.

fixed for 5.10

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Optional date cannot be entered
« Reply #5 on: January 11, 2011, 04:43:47 AM »
>> the CreateDateInput method doesn't appear to populate the class information into the form when the date field is readonly.

fixed for 5.10