May 22, 200124 yr 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>
May 23, 200124 yr 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
May 23, 200124 yr Author 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!!!!
May 24, 200124 yr 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
Create an account or sign in to comment