# Add Multiple Rows without leaving the page

**URL:** <https://community.glideapps.com/t/add-multiple-rows-without-leaving-the-page/69175>\
**Category:** Ask for Help\
**Created:** [January 2, 2024, 1:28pm UTC](https://community.glideapps.com/t/add-multiple-rows-without-leaving-the-page/69175 "2024-01-02T13:28:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sahil\_Mehta](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sahil_mehta/32/60726_2.png) [@Sahil\_Mehta](https://community.glideapps.com/u/Sahil_Mehta)\
**Post date:** [January 2, 2024, 1:28pm UTC](https://community.glideapps.com/t/add-multiple-rows-without-leaving-the-page/69175/1 "2024-01-02T13:28:33Z")

</div>

I’m looking for a way where after adding a row to the table, the form automatically opens up again to allow the user to add the next item.

---

<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:** [January 2, 2024, 4:40pm UTC](https://community.glideapps.com/t/add-multiple-rows-without-leaving-the-page/69175/2 "2024-01-02T16:40:09Z")

</div>

Use the on submit action to “Show form screen”

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [January 2, 2024, 11:47pm UTC](https://community.glideapps.com/t/add-multiple-rows-without-leaving-the-page/69175/3 "2024-01-02T23:47:16Z")

</div>

An alternative is using a form container on a details screen, I guess.

---

<div class="post-metadata">

**Author:** ![Sahil\_Mehta](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sahil_mehta/32/60726_2.png) [@Sahil\_Mehta](https://community.glideapps.com/u/Sahil_Mehta)\
**Post date:** [January 3, 2024, 3:44am UTC](https://community.glideapps.com/t/add-multiple-rows-without-leaving-the-page/69175/4 "2024-01-03T03:44:59Z")

</div>

Hi Robert, thanks for the prompt response.

I’m using a value from the original screen when filling the form. When I open a new form On Submit, it loses the context of the original screen and I’m unable to capture the RowID I Need.

Any way around this?

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [January 3, 2024, 4:02am UTC](https://community.glideapps.com/t/add-multiple-rows-without-leaving-the-page/69175/5 "2024-01-03T04:02:43Z")

</div>

If you store the RowID in your User Profile row before opening the form, you should be able to access it from there.

---

<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:** [January 3, 2024, 1:42pm UTC](https://community.glideapps.com/t/add-multiple-rows-without-leaving-the-page/69175/6 "2024-01-03T13:42:03Z")

</div>

Good point. On Submit → Show Form would end up giving you the wrong context.

Perhaps try a screen with a form container instead?
