Limit character input from users in REAL TIME

good day to all,

i made a form to use in a dialog box and i opt to limit the character input of users to 250 characters max!..

yes, i already tried the ff:

  • set the max length in the input validation using lotus formula

  • set the max length in the onchange event using lotus script

they work perfectly, however, it doesn’t fit my requirement!

i need to alert the user that he has reached the max limit of characters while he is still typing, not after he hit the OK button of my dialog box (w/c the above solutions do)…

could someone provide me with the right codes? the cursor should stop and an alert box should pop up when the user reaches the max limit… in real time…

thanks!

sincerely,

jacky

Subject: RE: limit character input from users in REAL TIME

To do this in the Notes client, you’ll need a NotesTimer object to check periodically how many characters the user has entered. You can initialize it in the field Entering event and deallocate it in the Exiting event. Be sure to disable the timer while in the timer event procedure, in case of an I/O wait, to avoid overrunning timer events.