I have a text field with an input validation of 30 characters. The user is asking if she can see these 30 spaces in the field so she knows how many spaces she has left to type rather than having to retype every time she runs over the 30 space amount. Is this possible? Can I display a field in the exact character length? Thank you in advance.
Subject: Display field in number of characters?
Hello Patty:
I know this is not exactly what you are looking for but it may help…
Add this formula to the Input Validation of the field you want to limit:
@If(@Length(fieldname)>30;@Failure(“This field can not exceed 30 characters. You have keyed in “+@Text(@Length(fieldname))+” characters.”);@Success)
This has worked for me in the past.
Hope it helps.
Regards,
Chris
Subject: RE: Display field in number of characters?
Thank you, Chris. I have added the number of characters to the error, that might be helpful to them - will most likely be helpful in other apps! I’ll keep looking for a way to show them as they are typing . . . Patty
Subject: Display field in number of characters?
This is possible in Web using javascript onChange event of the field.
Try this sample code (http://www.reconn.us/content/view/34/46/):
Only 50 characters allowed! // at every key up and key down event the upper function is called characters leftIn Notes client this will not work. (Don’t count on JavaScript capability of Notes client).
Regards,
Litty Joseph
Subject: RE: Display field in number of characters?
Thank you, Litty, but I am using this through the notes client. I found using the Native OS style and setting the number of characters to 30 with a Fixed (Characters) setting only allows me to type in 25 characters. Does that make sense?! If I can at least get the field to accept 30 characters with the border showing the field length that might work. Any ideas?