No way! This is validation error check. Customer won’t see that message until he or she actually made validation-error, i.e. enter more than certain number of characters. Which, as I’m trying to prove, is not possible.
I forgot to ask, in the end of original question, if anyone has ever seen that particular error message (client-side length validator error message). Because I haven’t.
I wrote, that this question is to feed my curiosity and nothing special aside of this. And your answer does feeds my curiosity, so thanks! :]
ah sorry I guess I misunderstood your question. I thought you would use one or the other! But yeah using both you would never end up with the js validation unless we are in the situation @Keith described.
Hmm. I can come up with contrived examples where it would be triggered, but in practise I think you’re correct in that you’d never see the message under normal client validation.
A slightly contrived example:
You’ve attached a plugin to the field that allows something like autocomplete. Upon selecting an autocomplete entry that’s too long (perhaps your length rules have changed since it was created) and moving away from the field, you get the error.