svelte-multistep-form icon indicating copy to clipboard operation
svelte-multistep-form copied to clipboard

Go to a specific step programmatically or Reset

Open Anas-Nabulsi opened this issue 2 years ago • 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?

Anas-Nabulsi avatar Mar 31 '22 14:03 Anas-Nabulsi

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)

edenriquez avatar Mar 31 '22 15:03 edenriquez