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
Actually, we have to set a class to the form that we want to validate. This is good for "one time" usage or for validating only the forms we want, but it restricts a little bit the scope.
The idea would be to being able call the validateForm method with the HTMLFormElement instance of the form, just like this :
Sure @SofianeLasri this can be done and I'll add it to the next update. Just curious though. Are there use-case where you will have multiple forms on a page that all need to be validated at once on click of one button?
No I actually don't have one for this use case. But, my idea was to add this piece of code inside my view layout. Here, it is for my authenticaton pages. But I think that I will do the same for the dashboard layout were almost all the pages will contains forms.
Actually, we have to set a class to the form that we want to validate. This is good for "one time" usage or for validating only the forms we want, but it restricts a little bit the scope.
The idea would be to being able call the validateForm method with the HTMLFormElement instance of the form, just like this :
With that, we would be able to fully 'automatize' the forms validation.
The text was updated successfully, but these errors were encountered: