# How to make a custom action work on the right row

**URL:** <https://community.glideapps.com/t/how-to-make-a-custom-action-work-on-the-right-row/23770>\
**Category:** Ask for Help\
**Created:** [March 4, 2021, 5:30pm UTC](https://community.glideapps.com/t/how-to-make-a-custom-action-work-on-the-right-row/23770 "2021-03-04T17:30:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gary\_Biagioni](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gary_biagioni/32/4201_2.png) [@Gary\_Biagioni](https://community.glideapps.com/u/Gary_Biagioni)\
**Post date:** [March 4, 2021, 5:30pm UTC](https://community.glideapps.com/t/how-to-make-a-custom-action-work-on-the-right-row/23770/1 "2021-03-04T17:30:27Z")

</div>

I have a button that has a custom action. The custom action is as follows:

![Untitled2](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/2/1/2187322bd75c1ea936447c64a90ce147188112a7.jpeg)

When I Link to the screen I really want to be operating on the new row I created but currently it operates on the first row in the table.

---

<div class="post-metadata">

**Author:** ![Lucas\_Pires](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lucas_pires/32/64863_2.png) [@Lucas\_Pires](https://community.glideapps.com/u/Lucas_Pires)\
**Post date:** [March 5, 2021, 9:19pm UTC](https://community.glideapps.com/t/how-to-make-a-custom-action-work-on-the-right-row/23770/2 "2021-03-05T21:19:21Z")

</div>

Try this:

- Create a user-specific text column called `Next UK`
- Before add row, add a Set Column action where in this Next UK column you set a **Unique Identifier**
- In `Add Row` action add a `UK` column to add this value
- Create a single Relation of `Next UK` \> `UK` column your adding row
- The 2nd Set column action **after** Add Row, you need to set, instead of _This Item_, set this single relation you just created.
- Link to screen to this single Relation

So the Action Flow will be:

> **Set Column** - _Set the Unique Indentifier_  
> |  
> **Add Row** - _add Unique Indentifier to a new UK column_  
> |  
> **Set Column**  
> |  
> **Link to Screen** - _use the single relation to go to the row you want_

PS: don’t use Set Colunn to clear value in **New UK** column, because in a next action, the Unique Indentifier will change

---

<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:** [March 5, 2021, 11:13pm UTC](https://community.glideapps.com/t/how-to-make-a-custom-action-work-on-the-right-row/23770/3 "2021-03-05T23:13:22Z")

</div>

I’m thinking would the compound action fire slow enough for a single value column \> last whole row work here.

---

<div class="post-metadata">

**Author:** ![Gary\_Biagioni](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gary_biagioni/32/4201_2.png) [@Gary\_Biagioni](https://community.glideapps.com/u/Gary_Biagioni)\
**Post date:** [March 6, 2021, 1:08am UTC](https://community.glideapps.com/t/how-to-make-a-custom-action-work-on-the-right-row/23770/4 "2021-03-06T01:08:46Z")

</div>

I do not really understand how this works but it does, and really I do not need to know. It did take me a bit to get things just right. I am using it to register people as users in my app (with some parameter checks) now two people can register at the same time. Thank you.

I am doing this as volunteer work so the people who I am doing this for thank you as well.

If anyone wants me to post an example that has a little more detail just ask.

---

<div class="post-metadata">

**Author:** ![Gary\_Biagioni](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gary_biagioni/32/4201_2.png) [@Gary\_Biagioni](https://community.glideapps.com/u/Gary_Biagioni)\
**Post date:** [March 6, 2021, 1:14am UTC](https://community.glideapps.com/t/how-to-make-a-custom-action-work-on-the-right-row/23770/5 "2021-03-06T01:14:33Z")

</div>

Not sure what you mean. But am willing to try it if you throw a little more detail at me.

What I was trying to do is allow two or more people to enter information into a user table where I can do some pre checks on the data. To do the checks, I use a temporary table to collect the data and then grab the completed data and write it to the real user table. So the method has to guarantee that two people can not end up on the same row in the temporary table.

---

<div class="post-metadata">

**Author:** ![Lucas\_Pires](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lucas_pires/32/64863_2.png) [@Lucas\_Pires](https://community.glideapps.com/u/Lucas_Pires)\
**Post date:** [March 6, 2021, 1:21am UTC](https://community.glideapps.com/t/how-to-make-a-custom-action-work-on-the-right-row/23770/6 "2021-03-06T01:21:43Z")

</div>

Glad it helped 😌

---

<div class="post-metadata">

**Author:** ![NoCodeAndy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nocodeandy/32/62530_2.png) [@NoCodeAndy](https://community.glideapps.com/u/NoCodeAndy)\
**Post date:** [January 17, 2024, 4:53pm UTC](https://community.glideapps.com/t/how-to-make-a-custom-action-work-on-the-right-row/23770/7 "2024-01-17T16:53:06Z")

</div>


