jQWidgets Forums

jQuery UI Widgets Forums General Discussions jqxDateTimeInput Wrong Date

This topic contains 3 replies, has 3 voices, and was last updated by  Peter Stoev 7 years, 4 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • jqxDateTimeInput Wrong Date #98749

    antrax13
    Participant

    Hi,

    we have an application and users most of the time just type the date instead of selecting.

    User can easily type 05/05/5555 (incorrect date – but still valid) and it will change it to 01/01/2100 (correct date).
    User really wanted to put 05/05/2055 lets say.

    If the user wont notice this change, he will submit 01/01/2100.

    Is there any easy fix where instead of replacing to correct date, widget will just blank/clear the date field?

    I am looking for the easiest setup of this not custom messages where I will validate date on focus out and clear field if not valid date.

    jqxDateTimeInput Wrong Date #98757

    Stanislav
    Participant

    Hello antrax13,

    Take a look at the API for jqxDateTimeInput, more specifically the setMinDate/ setMaxDate.
    Link

    setRange might be of help as well.
    Take a look at them and if you have questions feel free to ask them here or in the jqxDateTimeInput’s forum section: jqxDateTimeInput

    Best Regards,
    Stanislav

    jQWidgets Team
    http://www.jqwidgets.com/

    jqxDateTimeInput Wrong Date #98758

    antrax13
    Participant

    This is not a help I am looking for and it wont fix our issue.

    The issue is with the widget.

    When you type the date 5555-55-55 or 44/44/4444 it will be set to whatever date.

    user did not enter 2100-01-01 they entered 44/44/4444 therefor it is invalid. It should CLEAR the input not to RESET it to some valid date that user did not entered.

    If I am blind and I will type 44/44/4444 I am expecting to save 44/44/4444 not 01/01/2100. Range or min/max wont help.

    What I need is when user type invalid date it will clear input not replace it.

    Maybe add this feature to next release.

    I believe that there is not a simple solution so I will have to implement on focus out.

    jqxDateTimeInput Wrong Date #98788

    Peter Stoev
    Keymaster

    Hi antrax13,

    The behavior is by design. When you enter Date which is higher than the max date it will be the max date, when it is lower than the min date, it will be the min date.

    Regards,
    Peter

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.