The solution feels like it should have been obvious but it really wasn't. The custom error MUST return true if the field is empty so that an empty field is considered valid unless "required" is added to the class
http://mootools.net/shell/RwGyk/ I would have thought that if the "required" class is included, and the field is blank, there would be no need to perform the test for the custom error. On Aug 24, 8:28 pm, batman42ca <[email protected]> wrote: > I've been trying for a while but I can not figure out why > Form.Validator.Inline echoes both the error message "Error: This field > is required" and the custom error that I created. Yet it doesn't do > that for built in errors. > > Here's my simple code: > > http://mootools.net/shell/4gpfc/ > > How do I make my custom error behave the same as a built in error? > What am I doing wrong?
