My app has a functionality where the user can create requests and share them with people.
and In that request form, the user can create a list of things.
I thought about it and I decided to use custom states to save the list of things on the page and then when the user submits the request, the list of things and the other fields would be recorded in the database.
the problem that I have is that:
I have a datatype named “payments” The user will create multiple payments that it will create a list, and when the user submits the request, the request will be created and the list of payments will be saved in it.
but I don’t know how to save them on the page, I created the custom states with the correct data type, but when I am trying to set the status it is not giving me the option to link the input with the field.
Datatype 1: Request
Field Type
Request type text
Request date date
Payments list of Payments
Dataype 2: Payments
Field type
currency option set
money number
date Date
I may don’t know about custom states but I need help and see how to solve my problem.
what I am supposed to do here?