The option to add character limits in Cforms is great, but it would be really sweet if you were able to make it stop at the maximum number of characters allowed. While the current method (along with instructions for the user) works for 99% of our clients, that other 1% just get confused that the box does not get rid of the red border once they reduce the characters. If you were able to get it to monitor the # of characters as the user is typing, and cut it off at the max, that would be great. Unfortunately some of our clients need something braindead simple since they aren't too computer saavy. Just a thought.
Thanks for the reply, Oliver. That seems over my head, but I'll look into it. I actually just noticed with 8.1 (which I just updated to a couple days ago) if the user has entered more than the allowed characters, the form won't send even after reducing the characters to below the max allowed. Even dropping it to four characters wouldn't let it send. Maybe I'm trying to do too much with using CForms as a method for sumbitting classified ads.
I noticed that my earlier suggestion for the correct regexp was partially broken (under certain circumstances), can you try this and see if this fixes it:
Your Message|max. # of 150 characters|^[\s\S]{1,170}$