# How to add rows in other tables

**URL:** <https://community.glideapps.com/t/how-to-add-rows-in-other-tables/69699>\
**Category:** Ask for Help\
**Created:** [January 18, 2024, 9:43am UTC](https://community.glideapps.com/t/how-to-add-rows-in-other-tables/69699 "2024-01-18T09:43:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shirin\_Ghahremani](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/shirin_ghahremani/32/68726_2.png) [@Shirin\_Ghahremani](https://community.glideapps.com/u/Shirin_Ghahremani)\
**Post date:** [January 18, 2024, 9:43am UTC](https://community.glideapps.com/t/how-to-add-rows-in-other-tables/69699/1 "2024-01-18T09:43:17Z")

</div>

How can an end-user add a row to Table 2 by clicking an ‘Add’ button in Table 1’s layout? I am looking for a way to set up a user interface where a button click in one table prompts the addition of a new row in a different table.

---

<div class="post-metadata">

**Author:** ![tuzin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tuzin/32/86077_2.png) [@tuzin](https://community.glideapps.com/u/tuzin)\
**Post date:** [January 18, 2024, 9:49am UTC](https://community.glideapps.com/t/how-to-add-rows-in-other-tables/69699/2 "2024-01-18T09:49:18Z")

</div>

You can use an Add row action and specify the table you want to create a row in

---

<div class="post-metadata">

**Author:** ![Shirin\_Ghahremani](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/shirin_ghahremani/32/68726_2.png) [@Shirin\_Ghahremani](https://community.glideapps.com/u/Shirin_Ghahremani)\
**Post date:** [January 18, 2024, 10:05am UTC](https://community.glideapps.com/t/how-to-add-rows-in-other-tables/69699/3 "2024-01-18T10:05:32Z")

</div>

Yes row action only work on the same table as row in it not on the different table.

---

<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:** [January 18, 2024, 12:08pm UTC](https://community.glideapps.com/t/how-to-add-rows-in-other-tables/69699/4 "2024-01-18T12:08:30Z")

</div>

The Add Row action can add a row to any table you want. You just need to configure the action to do so.

---

<div class="post-metadata">

**Author:** ![Shirin\_Ghahremani](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/shirin_ghahremani/32/68726_2.png) [@Shirin\_Ghahremani](https://community.glideapps.com/u/Shirin_Ghahremani)\
**Post date:** [January 18, 2024, 2:48pm UTC](https://community.glideapps.com/t/how-to-add-rows-in-other-tables/69699/5 "2024-01-18T14:48:56Z")

</div>

Please set up two tables: Table 1 (Course) and Table 2 (Lessons). In Table 2, create two rows, each representing a different lesson. Then, conceal Table 2 in the layout view. In this layout, you’re an end-user without admin rights and no direct access to the tables. When you navigate to a course in Table 1 (Course) and select it, you should see a list of the two lessons from Table 2(Lessons), including an option (a plus sign) to add more lessons.

Now, suppose you add a new course to Table 1. This new course initially has no associated lessons in Table 2. How can you, as an end-user, add lessons to this newly created course?

---

<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 18, 2024, 3:16pm UTC](https://community.glideapps.com/t/how-to-add-rows-in-other-tables/69699/6 "2024-01-18T15:16:20Z")

</div>

On your Courses detail screen, add a collection and set the source to be your Lessons table. Apply a filter to that Collection: CourseID is Screen-\>RowId. Allow adding records to that Collection. Done.
