Can i warn user when max chars limit is reached?

2 posts, 0 answers
  1. John
    John avatar
    6 posts
    Member since:
    May 2012

    Posted 10 May 2012 Link to this post

    I have some radtextboxes on my website with maximum character limits such as 50 chars, because this is the size of the database field that the control is saved to. Now it has happened that users have tried to enter more text but the ui won't let them. So they phone up and complain that the website is broken. Is there a way to fire an event if they try to type more chars than the field allows? Then i could pop up an explanatory warning message to tell them that 50 chars is the limit. I don't want to clutter the ui with on-screen labels saying "this box accepts 50 chars max" when 99% of people will never exceed this limit. Any suggestions? Thanks
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 14 May 2012 Link to this post

    Hello John,

    Try the following javascript to achieve your scenario.
    function OnValueChanged(sender, args) {
       alert("50 characters is the limit");

Back to Top