Step Index ($s)
Tracks the current step index for reactions and manipulations.
Last updated
Was this helpful?
Tracks the current step index for reactions and manipulations.
Last updated
Was this helpful?
The special $s
variable is used to access the step count within the form. This can be useful for tracking user's step journey through a multi-step form and for implementing conditional logic and styling based on the current step.
Step Tracking: Monitor the current step number in a multi-step form.
Conditional Navigation: Navigate to different steps based on the current step number.
Step-Based Calculations: Perform actions based on the step count and integrate Reactivity .
Since Superform is built in vanilla JavaScript, you will see both HTML and Webflow examples, it's practically the same — works with Webflow's Custom Element and elements inside Code Embed.
HTML Example
Webflow Example