I am building an auto service shop “create listing” page. I want to let the vendors create their own options list and set their options’ pricing per option.
The way it supposed to work is:
1.) The “add” button creates a custom state item type that contains “option description” and “pricing”
2.) The repeating group shows the list of custom state item type
3.) When they click submit, the “list of custom state items” will then be converted into actual data by storing it in a data type called listing, as a list of options.
I created a custom state called “temp_options” to store the list of custom state items (step 2). But I am not sure how to do step 1, it seems like you can only add one field to the custom state? If I add a description to one custom state item, and then separately add pricing to another custom state item. How do I connect them together and add them to the temp options?