# Button formula open doc in current tab?

**URL:** <https://connect.superhuman.com/t/button-formula-open-doc-in-current-tab/30346>\
**Category:** Ask the Community\
**Created:** [April 29, 2022, 8:09pm UTC](https://connect.superhuman.com/t/button-formula-open-doc-in-current-tab/30346 "2022-04-29T20:09:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ebunge](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/ebunge/32/33278_2.png) [@ebunge](https://connect.superhuman.com/u/ebunge)\
**Post date:** [April 29, 2022, 8:09pm UTC](https://connect.superhuman.com/t/button-formula-open-doc-in-current-tab/30346/1 "2022-04-29T20:09:03Z")

</div>

Is there a formula for a button to just open a doc (or published doc as a website) in the same tab, not a new one? When I use OpenWindow(…) I get the doc I linked it to in a new tab, and I want it to open in the current tab.

---

<div class="post-metadata">

**Author:** ![Thierryvm](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/thierryvm/32/25803_2.png) [@Thierryvm](https://connect.superhuman.com/u/Thierryvm)\
**Post date:** [April 29, 2022, 8:32pm UTC](https://connect.superhuman.com/t/button-formula-open-doc-in-current-tab/30346/2 "2022-04-29T20:32:07Z")

</div>

Hello @ebunge ,

I tried with an OpenWidow approach("[https://coda.io](https://coda.io), “\_self”) but it doesn’t work, so I’ll have to check with a formula expert 🙂 to see if it’s possible.

However, while searching on the forum, I came across an article that refers to this ([How to use a button to go to a page within a doc - #6 by cnr](https://connect.superhuman.com/t/how-to-use-a-button-to-go-to-a-page-within-a-doc/21913/6))

Hopefully this will help you to see more clearly.

Sincerely  
Thierry

---

<div class="post-metadata">

**Author:** ![ebunge](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/ebunge/32/33278_2.png) [@ebunge](https://connect.superhuman.com/u/ebunge)\
**Post date:** [April 29, 2022, 9:15pm UTC](https://connect.superhuman.com/t/button-formula-open-doc-in-current-tab/30346/3 "2022-04-29T21:15:01Z")

</div>

Thanks a bunch, this did the trick! I must not have been using the right search term to find that answer! I think I went wrong when I used the “Open URL” function and then used the formula. I ended up just typing in the formula as the action and that worked.

---

<div class="post-metadata">

**Author:** ![Thierryvm](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/thierryvm/32/25803_2.png) [@Thierryvm](https://connect.superhuman.com/u/Thierryvm)\
**Post date:** [April 29, 2022, 11:11pm UTC](https://connect.superhuman.com/t/button-formula-open-doc-in-current-tab/30346/4 "2022-04-29T23:11:56Z")

</div>

I’m glad I could help you and we all make mistakes of distraction etc.

Coda allows so much that it is easy to make mistakes.

Sincerely,

Thierry

---

<div class="post-metadata">

**Author:** ![system](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/system/32/24484_2.png) [@system](https://connect.superhuman.com/u/system)\
**Post date:** [May 2, 2022, 11:12pm UTC](https://connect.superhuman.com/t/button-formula-open-doc-in-current-tab/30346/5 "2022-05-02T23:12:47Z")

</div>

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
