glhd / alpine-wizard

Multi-step wizard helpers for Alpine.js
MIT License
149 stars 3 forks source link

Question: When and how is the validator triggered? #7

Open thecyrilcril opened 1 year ago

thecyrilcril commented 1 year ago

How do I trigger the validator?

kombimedia commented 1 year ago

Hi there,

I have a similar question - how is the validation triggered in order to display an error message?

Thanks in advance.

thecyrilcril commented 1 year ago

Hi there,

I have a similar question - how is the validation triggered in order to display an error message?

Thanks in advance.

Haven't had time to figure it out, for now am validating on the server and redirecting to the step that needs to show it

inxilpro commented 1 year ago

It just uses alpine's reactivity. So if the data changes, everything is just reevaluated…

kombimedia commented 1 year ago

@inxilpro ok, I'll take another look. Do you have a working example/demo?