Character limitation in a text or rich text field

Hi everyone,

I am very new in domino and I have a design problem. I have to limit the characters that an user can write in a text field ( or rich text field ). The problem is that I have a document splitted in sections with layers. Inside each layer I have a text field. When an user fills the text field with many lines the user exceed the bottom limit of the layer and when I am going to print the document those lines are not seen in the piece of paper.

How can I limit it? I know how to limit with validation, calculating the lenght of the field and showing a message error if it is too long. But what I need is that the user when can not write more with reaches that limit.

Thanks in advance

Subject: character limitation in a text or rich text field

Hello,You can try writing some javascript on the onchange event. It will prevent user from inserting the characters after a specified length.

Hope this helps.

Rgds,

Munish Kaushik

Subject: RE: character limitation in a text or rich text field

hi Munish,That is a good idea but I have found a problem. I am using a character Trebuchet MS and each one has a diferent width so if I put a limit of characters often will not match with the lenght of the field, I think.

I have thought using the height of the field because that height has to be always the same.

Is there a method to get the height, isn’t it?

I going to try with that two options

Thanks again