Ash FrameworkAF
Ash Frameworkโ€ข4mo agoโ€ข
13 replies
faldor20

Form validation message missing field name

Hey folks, I've just purchased the ash book and I'm just at the beginning.
For some reason my form validation isn't showing any field names in the error message. I've done exactly as the book says, as far as I can tell, and I'm not sure if this is just how it's supposed to be.

Any advice is very appreciated :)
  def handle_event("validate", %{"form" => form_data}, socket) do
    socket =
      update(socket, :form, fn form ->
        AshPhoenix.Form.validate(form, form_data)
      end)

    {:noreply, socket}
  end
Solution
that's how it is supposed to be, as shown in the book ๐Ÿ™‚
Was this page helpful?