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

Validator number but not required #251

Closed
fplini opened this issue Oct 21, 2016 · 3 comments
Closed

Validator number but not required #251

fplini opened this issue Oct 21, 2016 · 3 comments
Labels

Comments

@fplini
Copy link

fplini commented Oct 21, 2016

Hi all! I'm using this validation plugin but I have a problem. I have an input text (type=text and validator=number) but is not required for me. So if I try to submit the form no errors are showed but also no action is triggered.

Any idea?
If I remove validator=number all works fine.

Thanks
Fabrizio

@hueitan
Copy link
Owner

hueitan commented Oct 21, 2016

try validator="required, number"

@fplini
Copy link
Author

fplini commented Oct 21, 2016

Hi and thanks for the reply. If I put "required" this means that the field is required but it isn't. So I can submit the form with the input value blank

@hueitan
Copy link
Owner

hueitan commented Oct 21, 2016

if you are looking for using the validator="number" but doesn't want it to be required, please see this comment.
#241 (comment)

@hueitan hueitan closed this as completed Oct 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants