colinaut / alpinejs-plugin-simple-validate

Simple Alpine form validation plugin
97 stars 4 forks source link

The Plugin does not support validation for multiple forms on the page. #20

Closed reatlat closed 11 months ago

reatlat commented 11 months ago

If I have multiple forms on the page, error messages appear only on the first form, meantime the second form may add error class to input, but error message not appear.

Is any way how can I handle second form, or is it a bug?

colinaut commented 11 months ago

It should work for multiple forms. Each form needs it's own id. See the examples multiform.html