rdeshane Posted May 22, 2001 Posted May 22, 2001 Is there a way to write a script to limit the amount of text that can be entered into a text field. Right now it will allow you to type beyond the area alotted for the entry (keeps adding lines) but will not print this info>
rdeshane Posted May 22, 2001 Author Posted May 22, 2001 Thank you, I will do some reading in that area, since I am just learning.
LiveOak Posted May 23, 2001 Posted May 23, 2001 Instead of a script, you can setup a calculated validation for the text field (Field Definition --->Options ---> Validation Tab) with a calculation: Length (FieldName) < 10 (or whatever length you wish) You can also use a custom message when someone trys to enter more than the allowed number of characters. This can also be made a strict validation so the user can't override it. If you want to use a script, you will need to loop through the records and use a SetField() or use a Replace() with the calculation Field = Left(Field, 10) (or again whatever length you wish) -bd
rdeshane Posted May 23, 2001 Author Posted May 23, 2001 I'm still confused, I tried what you suggested but it did not work. I want to be able to limit the text to 92 text characters in a specified box. I still need help!!!!
LiveOak Posted May 24, 2001 Posted May 24, 2001 If you will post an email address to your profile, I'll send you an example file.Other than that, I'm not sure how to help you. The technique does work. -bd
Recommended Posts
This topic is 8589 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now