s72
  • Multi-step form

    data-wizard since 0.1.0

    One long form, read one <fieldset> at a time. Without the script every step shows at once and the form still submits, so the steps are a way through the form rather than the form itself.

    Basic

    Account
    Project
    Review

    One project, one repository, one person. People can be added once it exists.

    html
    <form data-wizard>
      <fieldset>
        <legend>Account</legend>
        <label data-field><span>Email</span><input type="email" name="email" required></label>
        <label data-field><span>Password</span><input type="password" name="password" minlength="8" required></label>
      </fieldset>
      <fieldset>
        <legend>Project</legend>
        <label data-field><span>Name</span><input name="project" required></label>
        <label data-field><span>Repository</span><input name="repo"><small>Owner and name, as user/atlas.</small></label>
      </fieldset>
      <fieldset>
        <legend>Review</legend>
        <p>One project, one repository, one person. People can be added once it exists.</p>
      </fieldset>
      <button type="submit">Create</button>
    </form>

    Next checks the step it is leaving before it moves on, so an error is found where it was made.

    Notes