Jump to content

Limit data entry content by physical field length


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

Recommended Posts

Posted

Is there a way to limit the input of data into a text field per the width of the field itself? I can't use a "hard" character count in the field set-up because the text font is proportional; I don't want excess text to scroll to the next line.

Any ideas? TIA for your help!

Rich

Posted

There is no mechanism for fixing width without the text cutting off in the text box.

The only idea that I can think of that will work 100% of the time is to use a fixed-width font, like Courier. I've used that for printing on blank forms before.

Otherwise, if you wanted to use a specific font, you'd have to figure out the width of the widest character for said font and size (probably capital M), and figure out how many of those characters will fit on the line, and adjust the field validation to only allow that many characters.

This topic is 5414 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.