This topic is locked
[SOLVED]

 Limiting Text in add page

8/17/2007 12:16:00 PM
ASPRunnerPro General questions
T
telemark author

I am trying to limit the amount of text that can be typed on one line in a text box before it wraps to the next line. The cell properties or the height and width properties seem to only limit the box area, if you carry on typing then scroll bars appear. I would like the line to nbe limited to about 22 characters. I'm sure this can be achieved I just can't find the setting. It's probably very easy but when you cant find it it drives you nuts.
Using ASPRunnerpro 5 build 275. Access DB. The field in question is a memo field, set as a text area in the add page, Height 75, width 200 (pixels)
Thanks
Andy

Sergey Kornilov admin 8/17/2007

Andy,
if you like to limit the amount of text set Edit as type to Text box and set maxlength value to number of characters you want to allow.

T
telemark author 8/17/2007

Hi,
If you mean text field rather than text area, then i looked at this. However this limits me to one line of text, I'm looking for multiple lines of the same length. The reason is, if the user types a lot of text without auto word wrap at a set length then it affects the list page view ( I have to assume the user will not press return when the pixel size of the box has been exceeded and scroll bars appear). That particular field grows in length which then extends the page so you have to scroll left and right to see all the fields. I require if possible a memo sized area which can grow in length but is restricted to about 22 characters in width give or take.
Thanks again
Andy

Sergey Kornilov admin 8/17/2007

I see what you saying.
To the best of my knowledge text area do not support this kind of functionality.
You may allow users type what they want and use BeforeAdd/BeforeEdit events to reformat the field content.

T
telemark author 8/17/2007

Thanks Sergey for the quick response
I'll give your suggestion a go.
Andy