Jeremy
in memoriam 1991-2020
If you do some error display (ie, red box, error under it) you could avoid the necessities of overriding the function. And if you aren't great with JavaScript (which, since you said you had to learn it, extending, overriding or using JavaScript objects may be difficult), it may be easier to use some kind of submission errors in the dispaly.