Superform by Delta Clan
✨ ClonablesSocialResourcesSuperform Home
v2
v2
  • 🏁Getting Started
    • Introduction
    • Quick Start
  • 🫀Essentials
    • Form Container
    • Step Container
    • Navigation - Overview
      • Direct
      • Logic / Conditional
      • Hook
    • Variables
      • Form Data ($f)
      • Step Index ($s)
      • Progress Percentage ($p)
      • Scoring Variables ($v)
    • Progress Bar
    • Reset
    • Radio Groups
    • Checkbox Groups
    • Cheatsheet
  • ⚙️Global Options
    • Step Delay Controls
    • Animations
      • Step Animation
      • Step Animation Duration
      • Step Animation Ease
    • Save Data & Progress
    • Pre-fill Form
    • Prevent Content Flash
    • Debug
    • Third-party Integrations
    • Cheatsheet
  • 🎛️Input Validation & Errors
    • Validation
      • length()
      • words()
      • minmax()
      • checkbox()
      • must()
      • hook()
    • Error Management
      • Automatic Error Setup
      • Manual Error Setup
  • ⚡Reactivity
    • Update Text
    • Visibility
    • Class Toggle
    • Value
    • Set Attribute
  • 🔢Score Tracking
    • Score Setup & Calculation
    • Score Ranking
  • ⌨️Accessibility
    • Enter & Backspace Bindings (↩, ⌫)
    • Checkbox & Radio Bindings
  • 🛠️Javascript SDK
    • Intro to Superform API
    • Superform Instance
    • Cheatsheet
  • 📖Additional Resources
    • WTF is an expression ? 🆕
    • Integrations
    • Tutorials
    • Changelog
    • FAQ 🚧
    • Join Discord
Powered by GitBook
On this page
  • Setup
  • When and How
  • Linear
  • Step Teleport (name)
  • Step Teleport (number)

Was this helpful?

  1. Essentials
  2. Navigation - Overview

Direct

Direct form navigation.

Setup

Attribute: sf-goto

Value/Options: next, prev or back, +1, -1, step-name

Where: Navigation elements, radio buttons, or radio button groups, checkbox or checkbox groups.

Description: Enables straightforward navigation or teleportation to specific steps in a form.

Avoid numbers-only as step name(s).

❌ sf-step = 2

✅ sf-step = step-2 or step2 or step-two or s2

✅ use names semantically so other developers can understand your way of thinking.


When and How

Different direct navigation methods for different usecases.

Linear

sf-goto = next | back | prev

  • Next Step: Move to the next step in a linear sequence.

  • Previous Step: Move to the previous step in a linear sequence.

Example Use Cases: Basic multi-step forms like registration, surveys, or checkout processes.

Step Teleport (name)

sf-goto = step-name

  • Specific Step: Navigate directly to a named step.

Example Use Cases: Forms with non-linear paths where users can jump to a specific section based on the step name.

Step Teleport (number)

sf-goto = +1 | -1 | +5 | -3 | +10 and so on..

  • Jump Forward: Skip ahead by a specified number of steps.

  • Jump Backward: Move back by a specified number of steps.

Example Use Cases: Forms where users can skip optional steps or return to a previous section for review.

Last updated 11 months ago

Was this helpful?

🫀
sf-goto = step-pricing on the radio group that we want to act as a navigation element.
Checking the name of the desired step to navigate to, in this case sf-step = step-pricing