Help configuring a one to many inside my form

I have a Customers thing and a Customer Contacts thing. A Customer can have many Customer Contacts. I added in a field inside my Customer table with type “Customer Contact” and checked the box to make it a list.

In my “Add a customer” form I want the option to be able to add multiple contacts to this customer. Take a look at the picture to see what I am trying to do.

I am able to save a customer to the database and can also save a contact without associating it to any customer. I am having a lot of trouble getting my contacts to display in a repeating group. For some reason only 1 contact will ever display and when I hit the save contact button it overwrites my entry in my RG although it does correctly save it.

Once I have my list displaying I am not sure how to best go about linking the customer to the contacts once the form is saved. Currently my solution is far from ideal as a contact should not be created without being linked to a customer. I have looked into custom states and this sounds like the perfect solution to temporarily store the contact data but after watching many videos I am not able to configure it either.

All my settings are below, any help is greatly appreciated!

From what i can tell at first glance, it seems you’re trying to save a contact to a customer BEFORE that customer exists in the database?

  • Try flipping around your workflow steps so that customer is created first, and then add a field for customerLink = “Result of Step 1’s customer”
    -You won’t be able to link that customer to the contact until after the contact has been made (if i’m not mistaken) so you’ll need to add one more workflow box just for that: ContactLink = “Result of step 2’s Contact” :white_check_mark: