# Button action for add row and then show edit screen

**URL:** <https://community.glideapps.com/t/button-action-for-add-row-and-then-show-edit-screen/23952>\
**Category:** Ask for Help\
**Created:** [March 8, 2021, 2:12pm UTC](https://community.glideapps.com/t/button-action-for-add-row-and-then-show-edit-screen/23952 "2021-03-08T14:12:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aerimescu](https://avatars.discourse-cdn.com/v4/letter/a/9e8a1a/32.png) [@aerimescu](https://community.glideapps.com/u/aerimescu)\
**Post date:** [March 8, 2021, 2:12pm UTC](https://community.glideapps.com/t/button-action-for-add-row-and-then-show-edit-screen/23952/1 "2021-03-08T14:12:18Z")

</div>

Let’s say we’re on a record of “startup” entity.  
We also have a “rating” entity linked to startup by startup\_id.

I want to place an “Add rating” button on “startup” view, that will do 2 things:

1. create a row in “rating” table and set startup\_id on that row (done this)
2. open the edit screen for the new record.

Is there a way to do the second thing, in actions?

Thanks

---

<div class="post-metadata">

**Author:** ![Ric\_1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ric_1/32/22052_2.png) [@Ric\_1](https://community.glideapps.com/u/Ric_1)\
**Post date:** [March 8, 2021, 5:00pm UTC](https://community.glideapps.com/t/button-action-for-add-row-and-then-show-edit-screen/23952/2 "2021-03-08T17:00:29Z")

</div>

I think that works if the new row has a template field with a unique ID of combined startup + user. The action “Link to screen” then uses a relation field on that template field to open the right screen.

---

<div class="post-metadata">

**Author:** ![aerimescu](https://avatars.discourse-cdn.com/v4/letter/a/9e8a1a/32.png) [@aerimescu](https://community.glideapps.com/u/aerimescu)\
**Post date:** [March 8, 2021, 5:30pm UTC](https://community.glideapps.com/t/button-action-for-add-row-and-then-show-edit-screen/23952/3 "2021-03-08T17:30:46Z")

</div>

Super cool, it works!  
Many thanks, Ric!
