Hmm yes, you are right. The $errors array is for any additional validation, on top of the standard validation done by the rules. Perhaps we should think about changing that, to enable what you want to do. ...
General developer forum
Working with moodleform class
This discussion has been locked so you can no longer reply to it.