cancel
Showing results for 
Search instead for 
Did you mean: 

textEdit: set maximum length

Former Member
0 Kudos

Hi,

Is there a way of setting the maximum number of characters that may be entered in a text edit field.

Many Thanks,

Paul

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi, to clarify slightly.

I am using the following htmlb control to accept text in a BSP.


  <htmlb:textEdit    id       = "AREA_REASON"
                     text     = "<%=AREA_REASON%>"
                     height   = "50"
                     width    = "400" />

Currently the user can enter as much text as they want into this window. I want to limit the text to 255 chars to prevent potential loss of text when the data is passed to the back end.

If there is no way of doing this by setting a htmlb property would it be possible to use javascript to do this?

Thanks,

Paul

Former Member
0 Kudos