how to handle form reset without validation trigger? #984
Replies: 3 comments 1 reply
-
|
This doesn't make sense to me. What usecase would you want to allow the user to submit an invalid form? |
Beta Was this translation helpful? Give feedback.
-
|
I want to present the user a cleared form (message is empty) after submit. |
Beta Was this translation helpful? Give feedback.
-
|
@crutchcorn I can explain pretty well. Just hit this. I have a complex form that is displayed to both an end user, and then validated by an administrator. The end user should not be able to submit it without validation. However: the admin should be able to skip validation. That is the admin is allowed in this case to override many of the values to make them invalid. At first I thought I would just use different schema depending on who you are. Except the admin wants to be able to SEE that the form is invalid, and make the decision explicitly to submit anyways. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a form, like so:
when the form is reset by a submit, the validation is triggered again. I found nothing in the docs.
Sample code:
Beta Was this translation helpful? Give feedback.
All reactions