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
  • Summary
  • Essential attributes
  • Variables

Was this helpful?

  1. Essentials

Cheatsheet

List of essential attributes and variables.

Summary

↳ Essential attributes

↳ Variables


Essential attributes

Attribute
Options
Description

sf

Any valid form name

sf-step

Any valid step name

sf-goto

next, back, prev, +1, -1, step-name, logic(), hook(hookName)

sf-force-goto

true

sf-logic

JavaScript Logic

sf-logic-goto

step-name

Specifies the step to navigate to if the associated sf-logic condition is true. Supports corresponding multiple rules with

sf-logic-fallback

step-name

sf-reset

true

sf-checkbox-group

group-name

sf-el

progress-bar


Variables

Variable
Description
Usage

$f

Represents the form data values within Superform

$f.fieldName

$s

Reveals current step index

$s

$p

Tracks the progress percentage (%)

$p

$v

Scoring variable

$v.variableName

$v._rank

Automatically ranks scoring variables based on their values in descending order

$v._rank[number]

Last updated 9 months ago

Was this helpful?

Mounts the Superform library to a specific form in Webflow. Supports multiple Superforms on a page. .

Defines individual steps within the form. .

Directs navigation to specified steps or based on custom logic or hooks. .

Ability to use sf-goto outside of form steps. .

Evaluates JavaScript expressions to determine navigation paths based on form data or conditions. Supports multiple conditions by using suffixes (e.g., sf-logic-1, sf-logic-2). .

suffixes (e.g., sf-logic-goto-1, sf-logic-goto-2). .

Defines a fallback step if none of the sf-logic conditions are met. .

Resets the form's data, progress and takes the user back to the first step. .

Groups together a set of checkboxes. .

Tags a form element that will be used as a native progress bar. .

🫀
Learn more
Learn more
Learn more
Learn more
Learn more
Learn more
Learn More
Learn More
Learn More
Learn more