Back to all examples

Example signup form:

* required fields

Reset Submit + Add coworker
See source of this: Spike form and LiveView

Debug info

@form:
  %SpikeExample.SignupForm{
  __dirty_fields__: [],
  account_owner: %SpikeExample.SignupForm.AccountOwner{
    __dirty_fields__: [],
    email_address: nil,
    full_name: nil,
    password: nil,
    ref: "17d27a57-7f2d-4e0f-8958-3370a2a157ac"
  },
  available_plans: [
    %{id: 1, max_users: 1, name: "Starter", price: 0},
    %{id: 2, max_users: 5, name: "Growth", price: 1},
    %{id: 3, max_users: :infinity, name: "Enterprise", price: 9000}
  ],
  category_ids: [],
  company_name: nil,
  coworkers: [],
  note: nil,
  plan_id: nil,
  ref: "5aa0e901-a6f3-4e66-8e85-d2a6c572fe06",
  subdomain: nil
}
@errors:
  %{
  "17d27a57-7f2d-4e0f-8958-3370a2a157ac" => %{
    email_address: [presence: "must be present"],
    full_name: [presence: "must be present"],
    password: [
      presence: "must be present",
      length: "must have a length of at least 8"
    ]
  },
  "5aa0e901-a6f3-4e66-8e85-d2a6c572fe06" => %{
    company_name: [presence: "must be present"],
    plan_id: [presence: "must be present"],
    subdomain: [presence: "must be present"]
  }
}
@success
  false