# Navigate to Another Screen and Show "Add New Item" Form

**URL:** <https://community.glideapps.com/t/navigate-to-another-screen-and-show-add-new-item-form/76249>\
**Category:** Ask for Help\
**Created:** [September 10, 2024, 12:37am UTC](https://community.glideapps.com/t/navigate-to-another-screen-and-show-add-new-item-form/76249 "2024-09-10T00:37:46Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![stefan](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/stefan/32/33236_2.png) [@stefan](https://community.glideapps.com/u/stefan)\
**Post date:** [September 10, 2024, 12:37am UTC](https://community.glideapps.com/t/navigate-to-another-screen-and-show-add-new-item-form/76249/1 "2024-09-10T00:37:46Z")

</div>

Hi everyone,I’m working on an app where I have a home screen (Screen A) with a navigation menu linked to Table A. I want one of the navigation buttons to perform the following steps using Advanced Actions:

1. Navigate to Screen B
2. Show the “Add New Item” form for Table B

 ![actions_screen](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/6/e6f74decb3d11b13b4e072df93f2f18697cc863e.png)

The first step (navigating to Screen B) works as expected. However, when executing the second step, the “Add New Item” form is shown but it references Table A as the data source of the home screen instead of Table B. This results in a new item being added to the wrong table.How can I ensure that the “Add New Item” form correctly references Table B when navigating from Screen A?Any help or guidance would be greatly appreciated. Thank you in advance!

---

<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:** [September 10, 2024, 1:15am UTC](https://community.glideapps.com/t/navigate-to-another-screen-and-show-add-new-item-form/76249/2 "2024-09-10T01:15:22Z")

</div>

Can you try adding a second Go to tab under your first one to see if it helps.

---

<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:** [September 10, 2024, 1:18am UTC](https://community.glideapps.com/t/navigate-to-another-screen-and-show-add-new-item-form/76249/3 "2024-09-10T01:18:35Z")

</div>

Forms can add rows to any table. You just need to make sure you set the Target table accordingly within the form. You don’t necessarily have to navigate to Screen B to open a form that writes to Table B.

---

<div class="post-metadata">

**Author:** ![stefan](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/stefan/32/33236_2.png) [@stefan](https://community.glideapps.com/u/stefan)\
**Post date:** [September 10, 2024, 2:10am UTC](https://community.glideapps.com/t/navigate-to-another-screen-and-show-add-new-item-form/76249/4 "2024-09-10T02:10:14Z")

</div>

Thank you Jeff, that was indeed a simple solution.  
However, I have one additional requirement:  
On Screen B, I have a “Table” component with “Add New Items” enabled, which opens a custom form I’ve already designed. The thing is, when I navigate to the form using the menu approach I initially described, a new blank form is shown instead.

Ideally, I would like to have only one form for adding new items and reuse it in both scenarios. This helps avoid redundancy, potential errors, and importantly, preserves the “slide in” effect when the form is opened.

I haven’t been able to achieve the slide in effect when using separate “Form screens”. Thanks!!

---

<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:** [September 10, 2024, 2:31am UTC](https://community.glideapps.com/t/navigate-to-another-screen-and-show-add-new-item-form/76249/5 "2024-09-10T02:31:28Z")

</div>

You should be able to change the action for the Add button on the collection to use the same custom action that you created for the button on Screen A. Because of the way you have the action set up, it will still run that extra action to go to the tab that it’s already on, but that shouldn’t be a big deal.

As for Slide In, you configure that on the action itself.

---

<div class="post-metadata">

**Author:** ![stefan](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/stefan/32/33236_2.png) [@stefan](https://community.glideapps.com/u/stefan)\
**Post date:** [September 10, 2024, 7:25pm UTC](https://community.glideapps.com/t/navigate-to-another-screen-and-show-add-new-item-form/76249/6 "2024-09-10T19:25:42Z")

</div>

Thank you for your suggestion! Unfortunately, I can’t seem to make it work with just a single “Add New” form, because the custom actions are tied to specific data sources. Since I’m using Table A on Screen A and Table B on Screen B, I can’t select the custom action I want for the form linked to Table B.  
Thank you for your help anyway, I really appreciate it!

---

<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:** [September 10, 2024, 7:38pm UTC](https://community.glideapps.com/t/navigate-to-another-screen-and-show-add-new-item-form/76249/7 "2024-09-10T19:38:20Z")

</div>

Ah, got it. I think they used to be a little more ambiguous and not so strictly tied to a specific table.

Here’s another thought. Create a Custom Collection linked to Table B. Limit the collection to only 1 row. Add a button inside the custom collection and you should then be able to link it to your existing action.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [September 17, 2024, 7:38pm UTC](https://community.glideapps.com/t/navigate-to-another-screen-and-show-add-new-item-form/76249/8 "2024-09-17T19:38:27Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
