# Reference for child elements

**URL:** <https://community.glideapps.com/t/reference-for-child-elements/54636>\
**Category:** Ask for Help\
**Created:** [November 21, 2022, 6:00pm UTC](https://community.glideapps.com/t/reference-for-child-elements/54636 "2022-11-21T18:00:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Voffs](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/voffs/32/879_2.png) [@Voffs](https://community.glideapps.com/u/Voffs)\
**Post date:** [November 21, 2022, 6:00pm UTC](https://community.glideapps.com/t/reference-for-child-elements/54636/1 "2022-11-21T18:00:42Z")

</div>

Here is my simple task:  
I need to create an element which will have child elements.  
My problems:  
In order to write a reference into a child element, i’m must first write the parent element. I didn’t understand how to do it.  
As an alternative way, I wanted to immediately record the parent element on creation and then open it to the user. There is a strange glitch. If I add the FIRST entry, the recorded element does not open, but starting from the second, everything goes fine.  
 ![2](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/e/ce22f4425c966fa7cb18e26fe296befa29bd0f8a.jpeg)

 ![3](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/2/a/2a1cd8449849dd6cf22daa0c016931e9108b1f33.jpeg)  
it’s a first click  
 ![4](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/d/4/d49652994c76c9cd9a0a22a8d3e6f3816adc1a23.jpeg)  
next click  
 ![5](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/f/5f5b49c42f45f9d4d7d5ff3893d267292b0de343.jpeg)  
is It correct?  
What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [November 21, 2022, 7:39pm UTC](https://community.glideapps.com/t/reference-for-child-elements/54636/2 "2022-11-21T19:39:25Z")

</div>

With you add row —\> show edit screen, the edit screen you’re showing is the screen you’re on, not the one you just created.

Better option, if possible, is to use a form screen to add the items and then do a show edit screen as the on submit action.
