PDA

View Full Version : to stop further text input when the field length has been reached


epopov
10-06-2004, 09:30 AM
Hi,
I have several text input fields in my application. Each text input field has its limit. I want to stop further text input when the field length has been reached.

I haven't found such possibility in laszlo documentation and I have tried to perform workaround(see attachment). This example alwais shows first 20 symbols (limit = 20) but 21st symbol is visible on short time interval. I cann't fix it.

Can you give me more beautiful solution of this problem.

Thanks.

afriedrichs
11-20-2007, 11:12 AM
what about setting the maxlength... I know edittext and most other components handle it.

i.e.
<edittext id="selM900a" x="290" y="20" pattern="[0-9\-\.]*" maxlength="11" height="20" width="90">