colinaut / alpinejs-plugin-simple-validate

Simple Alpine form validation plugin
105 stars 5 forks source link

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

Closed reatlat closed 1 year ago

reatlat commented 1 year 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 1 year ago

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