Manually adding argument to action in form before calling AshPhoenix.Form.submit
I'm using
In my resource, I added this action:
That action now needs to receive a list of images which is a list of maps.
That list is created during the "submit" event after I consume images uploaded:
So, what I need now is to add the
Is there a way to do that?
AshPhoenix.Form to handle creation of a resource in LIveView.In my resource, I added this action:
That action now needs to receive a list of images which is a list of maps.
That list is created during the "submit" event after I consume images uploaded:
So, what I need now is to add the
images variable as the :images argument of my :my_create action to my form before calling AshPhoenix.Form.submit.Is there a way to do that?
