edenriquez/svelte-multistep-form

Go to a specific step programmatically or Reset

Opened this issue · 1 comments

How can you go to a specific step programmatically? and how can you reset the form to be empty or reset the steps to go back to the first one?

there is no go to specific step method but internally we pass a number to a function in order to move to the next step, I can expose that function to let you use it, for the reset form there is a resetSteps flag have you tried to put it as true ? if you mean reset the form you pass to the plugin then you should pass a function to clean the data whenever you want ( a error, specific action, etc)