Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 8589 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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> shocked.gif" border="0

Posted

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

Posted

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!!!!

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.