limit input in field on web

Using Servoy to administrate the content of your website? Discuss all webrelated Servoy topics on this forum!

limit input in field on web

Postby srowe » Tue Jul 07, 2009 5:37 pm

How can I limit the number of input characters to a field on the web? Format works in smart client, but not on the web client. I have searched documentation and the forum, but can't find a solution. I don't think I should have to write a function to check the length of each field, but is that the only way?
srowe
 
Posts: 74
Joined: Wed May 02, 2007 3:01 pm
Location: USA Missouri

Re: limit input in field on web

Postby srowe » Tue Jul 07, 2009 6:01 pm

Reg ex will work, but is there a way to show a message when the length exceeds the limit instead of just coloring the field red?
srowe
 
Posts: 74
Joined: Wed May 02, 2007 3:01 pm
Location: USA Missouri

Re: limit input in field on web

Postby srowe » Tue Jul 07, 2009 8:32 pm

I found some references on the forum to putting INVALID_INPUT in the global error handler and that seems to be working.

Thanks
srowe
 
Posts: 74
Joined: Wed May 02, 2007 3:01 pm
Location: USA Missouri


Return to Web Development

Who is online

Users browsing this forum: No registered users and 3 guests