Numbered stepper with side summary
Numbered steps across the top, done in order. Use it for a fixed, linear flow. Each step is checked before you move on, a side panel updates from the fields as you type, and the review step has Change buttons that jump back to any step. The sample is a four-step checkout.
Order #20418 is in
We've emailed your receipt. Every piece arrives in tissue with a care card, and your order leaves within one working day.
Show code
<div data-wiz="checkout" class="wiz">
<ol data-wiz-steps class="wiz-steps"></ol> <!-- one entry per panel, drawn by the script -->
<form data-wiz-form novalidate>
<div data-wiz-errors tabindex="-1" class="wiz-summary" hidden></div>
<section data-wiz-panel="bag" data-wiz-label="Bag" class="wiz-panel">…</section>
<section data-wiz-panel="delivery" data-wiz-label="Delivery" class="wiz-panel" hidden>
<input data-wiz-msg="Enter an email address" id="co-email"
aria-describedby="co-email-error" type="email" required>
<p id="co-email-error" class="wiz-error" hidden></p>
</section>
<button data-wiz-back type="button" hidden>Back</button>
<button data-wiz-next data-wiz-finish="Place order" type="submit">Continue</button>
</form>
</div>
stepFlow(host, {
verify: { bag: () => (unitsInBag() ? [] : [{ field: quantities[0], text: 'Add at least one item to check out' }]) },
submit: (finish) => sendOrder().then(finish),
});