# Adding dependent record with parent record key

**URL:** <https://community.glideapps.com/t/adding-dependent-record-with-parent-record-key/2451>\
**Category:** Feature Requests\
**Created:** [November 27, 2019, 7:17pm UTC](https://community.glideapps.com/t/adding-dependent-record-with-parent-record-key/2451 "2019-11-27T19:17:07Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mthakershi](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mthakershi/32/1715_2.png) [@mthakershi](https://community.glideapps.com/u/mthakershi)\
**Post date:** [November 27, 2019, 7:17pm UTC](https://community.glideapps.com/t/adding-dependent-record-with-parent-record-key/2451/1 "2019-11-27T19:17:07Z")

</div>

Hello. I have two sheets.

1. Event sheet which contains multiple events EventID is PK.
2. RSVP sheet which contains multiple RSVP by users and point to EventID like FK.

Initially, the RSVP sheet is empty - of course. I created a button on Event screen that opens RSVP page. How can I record the related EventID when RSVP entry is created?

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [November 27, 2019, 7:32pm UTC](https://community.glideapps.com/t/adding-dependent-record-with-parent-record-key/2451/2 "2019-11-27T19:32:44Z")

</div>

I would add a Form Button on your event details page. Then the form can pull in all of the values from that event using the Column values.

---

<div class="post-metadata">

**Author:** ![david](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/david/32/62831_2.png) [@david](https://community.glideapps.com/u/david)\
**Post date:** [November 27, 2019, 7:33pm UTC](https://community.glideapps.com/t/adding-dependent-record-with-parent-record-key/2451/3 "2019-11-27T19:33:06Z")

</div>

Add the EventID column value to the form.

---

<div class="post-metadata">

**Author:** ![mthakershi](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mthakershi/32/1715_2.png) [@mthakershi](https://community.glideapps.com/u/mthakershi)\
**Post date:** [November 28, 2019, 3:27am UTC](https://community.glideapps.com/t/adding-dependent-record-with-parent-record-key/2451/4 "2019-11-28T03:27:17Z")

</div>

I can’t figure it out. EventId in rsvp sheet stays blank

---

<div class="post-metadata">

**Author:** ![Doomba](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/doomba/32/1133_2.png) [@Doomba](https://community.glideapps.com/u/Doomba)\
**Post date:** [November 28, 2019, 7:54am UTC](https://community.glideapps.com/t/adding-dependent-record-with-parent-record-key/2451/5 "2019-11-28T07:54:18Z")

</div>

How are you currently generating the EventID primary key for every entry that is made? Does that event id show in the event details page?

---

<div class="post-metadata">

**Author:** ![mthakershi](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mthakershi/32/1715_2.png) [@mthakershi](https://community.glideapps.com/u/mthakershi)\
**Post date:** [November 28, 2019, 9:47am UTC](https://community.glideapps.com/t/adding-dependent-record-with-parent-record-key/2451/6 "2019-11-28T09:47:39Z")

</div>

I don’t generate EventId. It is present in events sheet as a unique column. Since it is no something that makes sense to user, I don’t display it in event details page.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [November 28, 2019, 1:09pm UTC](https://community.glideapps.com/t/adding-dependent-record-with-parent-record-key/2451/7 "2019-11-28T13:09:25Z")

</div>

Two question:

Are you using a form button within the Event details?  
Are you using the EventID from the Columns components?
