posabsolute/jQuery-Validation-Engine — Issue #250: custm funcCall not preventing submit
Author: kevzettler
Created: 2012-01-19 21:31:34+00:00
State: open

I have a custom validation function

```javascript
function checkDefault(field, rules, i, options){
if(field.get(0).defaultValue == field.val()){
return "* Field is required";
}
}
```
I have it assigned like so

```html

Glad to hear from you!

```

It seems that the checkDefault is getting called and triggered on the submission of the form. It displays the error message '* Field is required'

However the form is still being submitted and submitting the bad value. What am I doing wrong? am I missing something in my custom function?