Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error message failed to display when used with funcCall. #684

Closed
koljaho opened this issue Jun 12, 2013 · 3 comments
Closed

Error message failed to display when used with funcCall. #684

koljaho opened this issue Jun 12, 2013 · 3 comments

Comments

@koljaho
Copy link

koljaho commented Jun 12, 2013

I'm using the funcCall function. But the error message did not appear even after clicking "submit" button. The error messages for other fields are populated except that file input field.

function checkQualification(field, rules, i, options) {
alert("success");
return "Testing";
}

I used "alert" to test if the function is being called.

@patremb
Copy link

patremb commented Jun 12, 2013

Yes this seems to be an issue as you have to use it with required, like: validate[required,funcCall[checkQualification]].
The work around is to use rules.push("required"). Try this:

function checkQualification(field, rules, i, options) {
rules.push('required');
}

@koljaho
Copy link
Author

koljaho commented Jun 12, 2013

Hi patremb! Thanks for the prompt response. Now it works. But I don't want it to be a required field. I need it to work like "groupRequired". However, groupRequired seems to have problems with file input form field (together with dropdown list). and prompt doesn't disappear after user filled up one of the inputs.

Any idea how to solve this issue? Thanks!!

@setola
Copy link
Contributor

setola commented Oct 20, 2014

👍 for @patremb !!! ty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants