# How to Create Swap Button For A Table's Columns

**URL:** <https://connect.superhuman.com/t/how-to-create-swap-button-for-a-tables-columns/18662>\
**Category:** Ask the Community\
**Created:** [October 1, 2020, 9:42am UTC](https://connect.superhuman.com/t/how-to-create-swap-button-for-a-tables-columns/18662 "2020-10-01T09:42:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steelworld\_HEAD](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@Steelworld\_HEAD](https://connect.superhuman.com/u/Steelworld_HEAD)\
**Post date:** [October 1, 2020, 9:42am UTC](https://connect.superhuman.com/t/how-to-create-swap-button-for-a-tables-columns/18662/1 "2020-10-01T09:42:44Z")

</div>

Hey! I’m trying to create a button (per table row) that can swap the the row’s column B value with the same row’s column C value (and vice versa).  
I’ve set the Button’s **Action** as _ **Modify Row** _, **Apply to** as _ **This Row** _.

What do I type in the **Update Values** part of the Button Options though?

Thanks a bunch!

---

<div class="post-metadata">

**Author:** ![Daniel\_Stieber](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/daniel_stieber/32/17045_2.png) [@Daniel\_Stieber](https://connect.superhuman.com/u/Daniel_Stieber)\
**Post date:** [October 1, 2020, 2:54pm UTC](https://connect.superhuman.com/t/how-to-create-swap-button-for-a-tables-columns/18662/2 "2020-10-01T14:54:45Z")

</div>

Hey @Steelworld_HEAD,  
I wasn’t sure if it just works without a “buffer” column, but looks like it does: You just have to enter the respective other column name. Don’t forget “thisrow” before, so it only fills the current rows value and not a collection of the whole column.

Hope that answers your question 🙂

![Bildschirmfoto 2020-10-01 um 16.51.44](https://global.discourse-cdn.com/coda1/original/3X/f/5/f51ebe8ae349d20e14b1459ddf3435941a857ebb.png)

https://coda.io/embed/hEwlSiIEdr/_suyiq?viewMode=embedplay
