Min and max always change the number

2 posts, 0 answers
  1. OMER
    OMER avatar
    32 posts
    Member since:
    Dec 2013

    Posted 11 Dec 2014 Link to this post

    This widget looks a great addition to forms UI.
    What I'm missing, in regards to user experience is this:
    Let's say a widget is limited to min="20", max="40".
    Now, a user wants to add 30, but instead, he adds 300 (typo).
    The widget then reverts to 40, with no indication that anything changed.  A JS script handling the form submit will get the max value (40) and not 30 or 300... hence, there's no way to actually validate this.
    This might be a source for both user and developer frustration... (well, not might - it's a source of frustration for this developer :)).
    Is there a way to make this a little bit more user friendly and notify on erroneous change?
  2. Georgi Krustev
    Georgi Krustev avatar
    3687 posts

    Posted 15 Dec 2014 Link to this post

    Hello OMER,

    If you would like to allow values that are not valid in order to notify the end user, then I will suggest you set min and max values to null (default values) and leave the validation on the validation framework you are using. Thus the user will be able to enter "300", which is valid number but "out of range". In this case the validation will trigger and will notify the end user that the value is not correct.

    Georgi Krustev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top