Creating Nested Entries After Parent Entry Created

Hi!

I’m using the Gravity Forms API to create some entries with nested forms and have run into an issue. I create the parent entry before creating all of the child entries. All entries, both parent and nested, are created but I can’t get the child entries to show up with the parent entry. The child entries have the appropriate fields set (GPNF_Entry::ENTRY_PARENT_KEY, GPNF_Entry::ENTRY_PARENT_FORM_KEY, GPNF_Entry::ENTRY_NESTED_FORM_FIELD_KEY) and I’ve tried updating the parent entry so the nested entry field is a csv string of the nested entry ids but they still don’t show up when viewing the parent entry. Is there anything extra I need to do to the parent entry?

Hi Shannon,

It looks like you’ve set the necessary properties to attach the child entries to the parent entry, so just looking at this, I’m unsure why it isn’t working. Can you send us a support ticket for this so we can look at your setup and assist you to get it working.

Best,

Thank you, I will! I was hoping I had just missed a step at the end :wink:

Ah! I was typing out the support message and thought I’d check one more thing. I was passing the wrong field number of the nested form to my function! :woman_facepalming: All is good. Thank you for offering to help and happy Friday! :slight_smile:

1 Like

Hi Shannon,

Awesome. Glad you were able to figure it out.

Best,