Multi Steps Forms - How to reset 'steps' variable

I have a Multi Step Form following this tutorial Creating Multi Steps Forms

In my case the form is an Update Form in an SPA and has 8 steps. Here is my scenario…

How do I set the value of the variable ‘steps’ to 1?
I thought I could set it in the Server Action, but this doesn’t work.

image

Community Page
Last updated: