Back Button

Information

Attribute: superform-element = back

Apply to: div, a (link block), button, tag elements.

To navigate to the previous step in a multistep form, simply add the attribute to the element that triggers the previous step. Superform will automatically handle the transition to the previous step when the element is clicked.

Caution

  1. There should be only 1 back button in each step.

  2. If there are points scored from answers through your progress - all points collected until this step are removed when clicking a 'back' button.

  3. It can't be placed in the first step of a multistep form.

Upgrades

🔮 Step teleport: add superform-goto = numberOfStep to teleport back to another step.

Last updated