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?
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.
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! All is good. Thank you for offering to help and happy Friday!