# Button that references own row formula?

**URL:** <https://connect.superhuman.com/t/button-that-references-own-row-formula/15848>\
**Category:** Ask the Community\
**Created:** [May 11, 2020, 4:26pm UTC](https://connect.superhuman.com/t/button-that-references-own-row-formula/15848 "2020-05-11T16:26:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Benn\_Bennett](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/benn_bennett/32/7017_2.png) [@Benn\_Bennett](https://connect.superhuman.com/u/Benn_Bennett)\
**Post date:** [May 11, 2020, 4:26pm UTC](https://connect.superhuman.com/t/button-that-references-own-row-formula/15848/1 "2020-05-11T16:26:49Z")

</div>

Does anyone know how to format a button that auto-fills in a section of a row based on a formula?

Basically, I have a todo list. Each row is a project and I reference another table for the individual todo items. I want to add a “add todo” button to each row that references the name of that specific project. I already have a “add todo” button for the page, but I have to find the project each time I add a new todo item and my list of projects is growing and it’s becoming difficult to find. Here’s a screenshot of what I’m looking to do:

 ![Screen Shot 2020-05-11 at 9.25.37 AM](https://global.discourse-cdn.com/coda1/original/2X/6/682076b3b032d73a7fd6adb3eee51b00184c47d2.png)

Right now the “Add a New Task” just creates a blank row and I have to fill in all the blanks myself. I was hoping to add a formula to make it reference the row that the button exists in.

---

<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 11, 2020, 5:00pm UTC](https://connect.superhuman.com/t/button-that-references-own-row-formula/15848/2 "2020-05-11T17:00:55Z")

</div>

Hey I would need an example doc - to be able to see the other tables - to be able to help you.

---

<div class="post-metadata">

**Author:** ![Benn\_Bennett](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/benn_bennett/32/7017_2.png) [@Benn\_Bennett](https://connect.superhuman.com/u/Benn_Bennett)\
**Post date:** [May 11, 2020, 5:19pm UTC](https://connect.superhuman.com/t/button-that-references-own-row-formula/15848/3 "2020-05-11T17:19:29Z")

</div>

I’ll try and put something together soon. I can’t share this doc for confidentiality purposes unfortunately.

---

<div class="post-metadata">

**Author:** ![Paul\_Danyliuk](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/paul_danyliuk/32/27228_2.png) [@Paul\_Danyliuk](https://connect.superhuman.com/u/Paul_Danyliuk)\
**Post date:** [May 11, 2020, 5:36pm UTC](https://connect.superhuman.com/t/button-that-references-own-row-formula/15848/4 "2020-05-11T17:36:47Z")

</div>

Hey @Benn_Bennett,

I imagine, in your Todos table there’s a lookup column back to the row in Projects? Then in your Add new task button you simply need to specify in your AddRow formula:

```auto
Tasks.AddRow(Tasks.Project, thisRow)

```

or use `thisRow` in your UI, if that’s how you set up the button.

`thisRow` is the reference you’re looking for; it’s the row of the button that’s clicked.
