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
set same validators
warnings for multiple values?
#6
Comments
also @ragokan 1.0.6 working as expected :) thanks for swift update. I've tried few other forms but your's simple enough for my solidJS noobie 😂 |
Heyy, currently we can't do something like password: [
requiredValidator("This field is required"),
], password: requiredValidator("This field is required"), Till someone implements or I find time to implement it, we can do something like: const req = requiredValidator("This field is required");
...
password: req,
captcha: [req, minLength("Solving captcha is required")],
... |
Thank you for your comment, it made my day :) |
It's so obvious that it's emberassing to open an issue for 😂 | Thank you for your comment, it made my day :) Well you saved my day so thank you :) |
It is definitely not embarrassing, don't worry. Nice to see some people use the package 💯 I will also try to implement using rules for multiple keys at the same time. Take care, have fun! |
well yes, that would be nice. Is there a option to disable submit before required inputs and a redirect or a catch form response handler? |
I am planning to implement an eager validation system just like you ask, so that you can disable the button if the form is not valid. |
cool. Do you think onSubmit => redirect function and handler for form response also could fit in? |
Well, even though I didn't understand it totally, I think yes |
sorry, what i mean, i'm making a form which redirects user to another page after successful submission and before it shows a response from the onsubmit function. Guessing most use cases will have these kind of requriements. Solidjs is getting traction this year i think solform could be the go to form :) |
Ahh, got it now. I hope it becomes the go to form 💯 Thank you for your review, see you later and ask me anything if you require. |
like how to do this?
can do currently:
The text was updated successfully, but these errors were encountered: