ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

JS Error in Date fieldtype when entering invalid format

July 19, 2011 1:03pm

Subscribe [3]
  • #1 / Jul 19, 2011 1:03pm

    NAlbuquerque

    20 posts

    I’m getting a JS error from the Date fieldtype when I enter an invalid date format on the publish entry page.

    Entering an invalid date should display a notice below the date field and an error notification badge, instead nothing gets displayed to the user and a JS error is thrown.

    Here is a quick video outlining the problem. You’ll notice it works fine if I enter a valid date format. But when I simulate an invalid date entry, a JS error is thrown.

    http://www.screencast.com/users/NAlbuquerque/folders/Jing/media/49ba359a-c7a4-45bc-8952-fbfce47f90ec

    Bug?

  • #2 / Jul 20, 2011 3:07pm

    Sue Crocker

    26054 posts

    It’s a nice to have, since if you attempt to save the entry when it’s not a valid format, you do get an error message on the page. Would it be better if the error was visible *before* you saved? Certainly. If you’d like to add it as a bug report feel free to. It’s one of those that can straddle the fence between bug and usability issue.

  • #3 / Jul 20, 2011 3:28pm

    NAlbuquerque

    20 posts

    Hi Sue, it feels more like a bug since the error doesn’t show up at all for the end user if the format is broken. So they submit the form and they get sent back to the publish form instead of the “save summary” page. There is no visible error on the screen, so it’s confusing and might be confused as a successful save for those inexperienced with the CP. The only indication is the JS error silently thrown in Firebug.

  • #4 / Jul 21, 2011 11:51am

    Kyle Cotter

    730 posts

    Hi NAlbuquerque,

    I am able to confirm this issue when using the date fieldtype. Sue was referring to the entry and expiration date fields, that do in fact give an error if not filled out correctly. The date fieldtype should work in this manner, and since it does not I have filed a Bug Report for you. Feel free to subscribe to the bug report to stay up to date on the status of it.

    Thanks.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases