Understanding Phoenix.HTML.Form, Changesets and data lifecycle

Glad you got it working!

Here’s a minimal example repo that works off of the Phoenix.HTML.Form struct rather than the changeset since

Ecto changesets are meant to be single use. By never storing the changeset in the assign, you will be less tempted to use it across operations
source: Phoenix.Component.form/1

It just required accessing the params key of the nested form like so:

2 Likes