I'm trying to implement https://fly.io/phoenix-files/making-a-checkboxgroup-input/ for a field that is a {:array, ;uuid}. When generating the form, using AshPhoenix, I can see that form.data and form.source have values inside the field that will be used in the multi checkbox field. However @value is always empty, so I can't tell if a given checkbox should be checked or not.
I circumvented the problem by passing defining the checked flag as a third element in the options array. So, instead of passing [{"label", "value"}] as options , I'm passing [{"label", "value", true}] This works fine, but I was wondering if there is something I'm missing here.
The Elixir backend framework for unparalleled productivity. Declarative tools that let you stop wasting time. Use with Phoenix LiveView or build APIs in minutes for your front-end of choice.