You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that I cannot use allowEmpty in the validate attribute.
What I would like to do is validate a field to be either a valid email address or empty. I don't seem to be able to do this? Am I correct or am I missing a simple way of doing this?
Please see pull request #53 .
The syntax will need to change as the assumption is that everything is an "and" condition at the moment. Extending the framework to handle "isEmpty" is fairly straight forward but the conditional processing parsing is a little harder and needs some more work.
It seems that I cannot use
allowEmpty
in thevalidate
attribute.What I would like to do is validate a field to be either a valid email address or empty. I don't seem to be able to do this? Am I correct or am I missing a simple way of doing this?
I would like to be able to put something like
validate="allowEmpty,isEmail"
Thanks for helping me out!
The text was updated successfully, but these errors were encountered: