# Create two actions in a button

**URL:** <https://connect.superhuman.com/t/create-two-actions-in-a-button/3561>\
**Category:** Ask the Community\
**Created:** [November 23, 2018, 6:15am UTC](https://connect.superhuman.com/t/create-two-actions-in-a-button/3561 "2018-11-23T06:15:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hao\_Yan](https://avatars.discourse-cdn.com/v4/letter/h/cc9497/32.png) [@Hao\_Yan](https://connect.superhuman.com/u/Hao_Yan)\
**Post date:** [November 23, 2018, 6:15am UTC](https://connect.superhuman.com/t/create-two-actions-in-a-button/3561/1 "2018-11-23T06:15:50Z")

</div>

Is it currently possible to create two actions that act on two different tables at the same time?  
For example, I like to create a start and end button. When hitting the start button, it marks the starting time. When I hit the end button, it will log the duration that I worked into this corresponding task but create a separate log in another table. Currently, I don’t know if this is possible.

---

<div class="post-metadata">

**Author:** ![Jean\_Pierre\_Traets](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/jean_pierre_traets/32/16275_2.png) [@Jean\_Pierre\_Traets](https://connect.superhuman.com/u/Jean_Pierre_Traets)\
**Post date:** [November 23, 2018, 9:58am UTC](https://connect.superhuman.com/t/create-two-actions-in-a-button/3561/2 "2018-11-23T09:58:51Z")

</div>

Hi,

As explained in the documentation how to work with buttons, just create a button for each action you want to be executed and then use a “push button” button to execute multiple actions with one push.

As I have not yet personal experience with this functionally, this is the only advice I can give.

Enjoy Coda and would be glad to understand if you managed to get the magic working.

Kind regards,  
//JP

---

<div class="post-metadata">

**Author:** ![tomavatars](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/tomavatars/32/6130_2.png) [@tomavatars](https://connect.superhuman.com/u/tomavatars)\
**Post date:** [November 23, 2018, 10:57am UTC](https://connect.superhuman.com/t/create-two-actions-in-a-button/3561/3 "2018-11-23T10:57:09Z")

</div>

I would love to stack actions to only one button.  
Automation for this would be awesome.  
Like a trigger for automation would be Push button. @preeyanka what do you think of this?

---

<div class="post-metadata">

**Author:** ![Hao\_Yan](https://avatars.discourse-cdn.com/v4/letter/h/cc9497/32.png) [@Hao\_Yan](https://connect.superhuman.com/u/Hao_Yan)\
**Post date:** [November 24, 2018, 4:42pm UTC](https://connect.superhuman.com/t/create-two-actions-in-a-button/3561/4 "2018-11-24T16:42:04Z")

</div>

I got a workaround. I created a new variable recording how many times this button is pressed by setting the variable = variable+1. Then I use the change of this variable to trigger the automation for all other tasks, such as modifying something in another table. Currently it works great. You can hide this variable since it is not useful except for the trigger.

---

<div class="post-metadata">

**Author:** ![Nenad\_Ilic](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/nenad_ilic/32/9176_2.png) [@Nenad\_Ilic](https://connect.superhuman.com/u/Nenad_Ilic)\
**Post date:** [August 7, 2019, 5:40pm UTC](https://connect.superhuman.com/t/create-two-actions-in-a-button/3561/5 "2019-08-07T17:40:25Z")

</div>

Another way of doing it would be to put the actions like `AddRow(table, column, columnValue)` or `ModifyRows(rows, column, columnValue)` into a `List(value)` when enabling the formula editor on a button.

For example:  
`List(ModifyRows(thisRow, Status, "Done"), AddRow(thisTable, Status, "Added"))`

Not sure if this is best practice but I let someone more experienced comment on it.

---

<div class="post-metadata">

**Author:** ![Ed\_Liveikis](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/ed_liveikis/32/21358_2.png) [@Ed\_Liveikis](https://connect.superhuman.com/u/Ed_Liveikis)\
**Post date:** [January 17, 2020, 12:44pm UTC](https://connect.superhuman.com/t/create-two-actions-in-a-button/3561/7 "2020-01-17T12:44:08Z")

</div>

@Nenad_Ilic, I like this for when creating individual buttons by themselves, is inconvenient or unusable as individual elements.

---

<div class="post-metadata">

**Author:** ![Ed\_Liveikis](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/ed_liveikis/32/21358_2.png) [@Ed\_Liveikis](https://connect.superhuman.com/u/Ed_Liveikis)\
**Post date:** [January 17, 2020, 12:59pm UTC](https://connect.superhuman.com/t/create-two-actions-in-a-button/3561/8 "2020-01-17T12:59:06Z")

</div>

And now discovered the more explicit:

`RunActions(<formula1>, ...)`

Which is in the formula docs and mentioned in other threads like:

> [@Several actions for button](https://connect.superhuman.com/t/several-actions-for-button/2423/6):
>
> That’s correct. This was a change we made before launching buttons and automations ([https://blog.coda.io/new-building-block-automation-811a4d604f91](https://blog.coda.io/new-building-block-automation-811a4d604f91)) because of feedback on this (like @Daniel_Stieber’s above) – actions are run sequentially now.
