# Button clears my row when the table it's in has more than one row

**URL:** <https://connect.superhuman.com/t/button-clears-my-row-when-the-table-its-in-has-more-than-one-row/15797>\
**Category:** Ask the Community\
**Created:** [May 9, 2020, 2:12am UTC](https://connect.superhuman.com/t/button-clears-my-row-when-the-table-its-in-has-more-than-one-row/15797 "2020-05-09T02:12:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sean\_Meehan](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/sean_meehan/32/14802_2.png) [@Sean\_Meehan](https://connect.superhuman.com/u/Sean_Meehan)\
**Post date:** [May 9, 2020, 2:12am UTC](https://connect.superhuman.com/t/button-clears-my-row-when-the-table-its-in-has-more-than-one-row/15797/1 "2020-05-09T02:12:25Z")

</div>

Hey folks - I’m **very** new to coda and trying to figure out something that feels incredibly simple.

I have a doc [here](https://coda.io/d/Table-issues_dgH5lizDSdY) where I made a simple button just to test things out. It’s just supposed to change the index of the row it’s in.

it works as expected when there’s only one row in the table - but if there are 2+ rows, pushing the button will null the field of the row it was pushed in. I would have expected given it’s defined as acting on “thisRow” that it would just subtract from the row it’s in only … but it seems to break.

Any thoughts? Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Johg\_Ananda](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/johg_ananda/32/13930_2.png) [@Johg\_Ananda](https://connect.superhuman.com/u/Johg_Ananda)\
**Post date:** [May 9, 2020, 2:17pm UTC](https://connect.superhuman.com/t/button-clears-my-row-when-the-table-its-in-has-more-than-one-row/15797/2 "2020-05-09T14:17:38Z")

</div>

The way you’ve shared (published) the doc, I can’t push the button or see the code to help.

![](https://global.discourse-cdn.com/coda1/original/2X/a/a8dc5fd2e7029479d3d833855f2fdd6f75722f72.gif)

---

<div class="post-metadata">

**Author:** ![Sean\_Meehan](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/sean_meehan/32/14802_2.png) [@Sean\_Meehan](https://connect.superhuman.com/u/Sean_Meehan)\
**Post date:** [May 9, 2020, 2:40pm UTC](https://connect.superhuman.com/t/button-clears-my-row-when-the-table-its-in-has-more-than-one-row/15797/3 "2020-05-09T14:40:26Z")

</div>

@Johg_Ananda thanks for taking a look! I’m not honestly sure how to share correctly.

I unpublished, and went to share dialog and made sure “anyone with the link can edit” … hopefully that works?

---

<div class="post-metadata">

**Author:** ![Johg\_Ananda](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/johg_ananda/32/13930_2.png) [@Johg\_Ananda](https://connect.superhuman.com/u/Johg_Ananda)\
**Post date:** [May 9, 2020, 3:03pm UTC](https://connect.superhuman.com/t/button-clears-my-row-when-the-table-its-in-has-more-than-one-row/15797/4 "2020-05-09T15:03:24Z")

</div>

OK we’re getting closer! That worked and I can see the document. However in your original post:

> [@Sean\_Meehan](#):
>
> but if there are 2+ rows, pushing the button will null the field of the row it was pushed in

The doc you shared only has one row. Can you set it up, and explain how to create the condition? A gif like the one I made is ideal if possible!

---

<div class="post-metadata">

**Author:** ![Sean\_Meehan](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/sean_meehan/32/14802_2.png) [@Sean\_Meehan](https://connect.superhuman.com/u/Sean_Meehan)\
**Post date:** [May 9, 2020, 3:17pm UTC](https://connect.superhuman.com/t/button-clears-my-row-when-the-table-its-in-has-more-than-one-row/15797/5 "2020-05-09T15:17:15Z")

</div>

Ok cool! I’ll get back you ASAP; I assume coda doesn’t have a gif recording feature though? I may have some software on my computer that does that though.

---

<div class="post-metadata">

**Author:** ![Sean\_Meehan](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/sean_meehan/32/14802_2.png) [@Sean\_Meehan](https://connect.superhuman.com/u/Sean_Meehan)\
**Post date:** [May 9, 2020, 5:32pm UTC](https://connect.superhuman.com/t/button-clears-my-row-when-the-table-its-in-has-more-than-one-row/15797/6 "2020-05-09T17:32:00Z")

</div>

ah - I figured it out! the way that I had defined the formula on the button, the action wasn’t being applied on just the singular row - it was applying to the others as well. all set! Thanks for having a look all the same 🙂
