AshPhoenix form handling
Question about Ash Phoenix forms. When using ecto and assign_form the names in the form are user[active] for the active field of user schema. For AshPhoenix forms with assign(:form, form) the names are form[active] so it does not know the resource type when building the form. Is there another way to deal with this so the forms do have the resource name in the element names, or do I just need to change the js that was using the old names? This also impacts the LiveView tests using the form helper
2 Replies
When creating the form, you can use
as: “name”
to change that, IIRCI just found that. Thanks.