# Populate parent entry id \[RESOLVED\]

**URL:** <https://community.gravityforms.com/t/populate-parent-entry-id-resolved/15354>\
**Category:** Get Help\
**Tags:** dynamic-population, custom, gravity-wiz\
**Created:** [June 15, 2023, 6:11pm UTC](https://community.gravityforms.com/t/populate-parent-entry-id-resolved/15354 "2023-06-15T18:11:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![peyman139000](https://avatars.discourse-cdn.com/v4/letter/p/c67d28/32.png) [@peyman139000](https://community.gravityforms.com/u/peyman139000)\
**Post date:** [June 15, 2023, 6:11pm UTC](https://community.gravityforms.com/t/populate-parent-entry-id-resolved/15354/1 "2023-06-15T18:11:42Z")

</div>

hi  
[This code](https://github.com/gravitywiz/snippet-library/blob/master/gp-nested-forms/gpnf-populate-parent-entry-id.php), created by the good gravity wiz team, does not work for me.  
Does it need special customization or should a part of it be changed?  
I am not a programmer

---

<div class="post-metadata">

**Author:** ![scott-the-sorceror](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/scott-the-sorceror/32/2772_2.png) [@scott-the-sorceror](https://community.gravityforms.com/u/scott-the-sorceror)\
**Post date:** [June 15, 2023, 7:09pm UTC](https://community.gravityforms.com/t/populate-parent-entry-id-resolved/15354/2 "2023-06-15T19:09:23Z")

</div>

Hi Jack,

The snippet doesn’t require any customization, but you do have to insert the `gpnf_parent_entry_id` parameter into the Parameter Name setting.

 ![CleanShot 2023-06-15 at 15.07.23@2x](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/a/ac28f1523eb20bc7b171519c6f240aa0722383e7.png)

This needs to be done in the parent form. If you want to pass this to the child form, you must first populate the parent entry ID in a field on the parent form and then use the `{Parent}` merge tag to pass the ID to a field in the child form.

---

<div class="post-metadata">

**Author:** ![peyman139000](https://avatars.discourse-cdn.com/v4/letter/p/c67d28/32.png) [@peyman139000](https://community.gravityforms.com/u/peyman139000)\
**Post date:** [June 16, 2023, 1:20pm UTC](https://community.gravityforms.com/t/populate-parent-entry-id-resolved/15354/5 "2023-06-16T13:20:36Z")

</div>

[This code](https://github.com/gravitywiz/snippet-library/blob/master/gp-nested-forms/gpnf-attach-child-entry-by-field.php) from the group gravitywiz is what I wanted, thank you very much to the wonderful and magical group gravitywiz

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [June 16, 2023, 5:31pm UTC](https://community.gravityforms.com/t/populate-parent-entry-id-resolved/15354/6 "2023-06-16T17:31:43Z")

</div>

Closed on June 16, 2023, 5:31pm UTC


