Back to all examples

Simple form, handled in LiveComponent:

* required fields
Submit Reset
See source of this: Spike form and LiveView

Debug info

@form:
  %SpikeExample.SimpleForm{
  __dirty_fields__: [],
  accepts_conditions: false,
  email_address: nil,
  first_name: nil,
  last_name: nil,
  password: nil,
  ref: "c753a2d1-3364-429e-9803-c68fcf59e0b3"
}
@errors:
  %{
  "c753a2d1-3364-429e-9803-c68fcf59e0b3" => %{
    accepts_conditions: [acceptance: "must be accepted"],
    email_address: [presence: "must be present"],
    first_name: [presence: "must be present"],
    last_name: [presence: "must be present"],
    password: [presence: "must be present"]
  }
}
@success
  false