Warning user they are reaching 255 character limit.

K

kelvin.koogan

There's a well know limitation that only 255 characters can be written
in a text field. I'm happy to live with this. However users get a
little upset when they type in 500 characters, move off the text field
and are informed that they need to get rid of half of them.

Is there some way I could warn the user that they are approaching the
limit, say by turning text orange when it's more than 200 characters
and red when it's more than 255?

How can I continuously track the number of characters entered to
trigger this bahaviour?

TIA,
KK
 
P

Paresh

There's a well know limitation that only 255 characters can be written
in a text field. I'm happy to live with this. However users get a
little upset when they type in 500 characters, move off the text field
and are informed that they need to get rid of half of them.

Is there some way I could warn the user that they are approaching the
limit, say by turning text orange when it's more than 200 characters
and red when it's more than 255?

How can I continuously track the number of characters entered to
trigger this bahaviour?

TIA,
KK

I dont think there is any way to achieve this through rules or without
coding.
Through coding, you will need to write make use of textbox events like
"TextChanged"
For more help, you can take a look at the following link:
http://blogs.msdn.com/infopath/archive/2006/12/18/creating-complex-infopath-controls-in-c-sharp.aspx

Hope this helps.

Thanks,
Paresh
http://www.openzeas.com/blogs/Paresh/default.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top