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

Required allow whitespace? #72

Open
1ucay opened this issue Jun 22, 2021 · 1 comment
Open

Required allow whitespace? #72

1ucay opened this issue Jun 22, 2021 · 1 comment

Comments

@1ucay
Copy link

1ucay commented Jun 22, 2021

Hi, how can I prevent whitespace on input required?
https://stackoverflow.com/questions/13766015/is-it-possible-to-configure-a-required-field-to-ignore-white-space

@1ucay
Copy link
Author

1ucay commented Jun 22, 2021

I solved by this way
Validate.addValidator('required', function(value, param1, param2) { return ( value.trim() !== '' ); }, "", 5, false);

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

1 participant