Jump to content
Server Maintenance This Week. ×

Limit the number of lines in the text field


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

Recommended Posts

:idot: I have an unusual request - to stop people from entering the 3rd line into the address text field (they should be able to enter one line or two lines but not the 3rd line and not the gap). However hard i try, i could not figure out how to do this.

This is an address field without town, county and postcode, which are in the separate fields. Users should be able to put unlimited number of characters in the first line, press enter/return, than put what ever number of characters in the second line and THAT SHOULD BE IT. They should be restricted from putting anything in the 3rd line of that particular text field.

Thanks

 

Link to comment
Share on other sites

I agree completely with Lee; your structure needs to change.

 

However, you could use an auto-enter calc like this to prevent entry of more than two lines.

A user might enter a third line; but it won't be accepted.

 

LeftValues( Self; 2)

Link to comment
Share on other sites

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