# Can I add a custom action to the standard Back button/link?

**URL:** <https://community.glideapps.com/t/can-i-add-a-custom-action-to-the-standard-back-button-link/34789>\
**Category:** Ask for Help\
**Created:** [November 19, 2021, 7:05pm UTC](https://community.glideapps.com/t/can-i-add-a-custom-action-to-the-standard-back-button-link/34789 "2021-11-19T19:05:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Malcolm\_Lewis](https://avatars.discourse-cdn.com/v4/letter/m/5f9b8f/32.png) [@Malcolm\_Lewis](https://community.glideapps.com/u/Malcolm_Lewis)\
**Post date:** [November 19, 2021, 7:05pm UTC](https://community.glideapps.com/t/can-i-add-a-custom-action-to-the-standard-back-button-link/34789/1 "2021-11-19T19:05:54Z")

</div>

See below. My Glide **Cancel** button resets some variables.

I’d like the built-in **Back** button/link in the upper left corner to also reset some of those same variables.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/f/e/fe3d3afb34808a39a590481948c18d9647db6f2a.jpeg)

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [November 19, 2021, 7:54pm UTC](https://community.glideapps.com/t/can-i-add-a-custom-action-to-the-standard-back-button-link/34789/2 "2021-11-19T19:54:24Z")

</div>

You can’t attach actions to the back button. Also consider devices, like Android, that let you go back with an OS button and avoid the app’s back button.

For situations like yours, I will usually structure my actions to clear the columns on the way into the screen rather than on the way out.

---

<div class="post-metadata">

**Author:** ![Malcolm\_Lewis](https://avatars.discourse-cdn.com/v4/letter/m/5f9b8f/32.png) [@Malcolm\_Lewis](https://community.glideapps.com/u/Malcolm_Lewis)\
**Post date:** [November 19, 2021, 7:57pm UTC](https://community.glideapps.com/t/can-i-add-a-custom-action-to-the-standard-back-button-link/34789/3 "2021-11-19T19:57:07Z")

</div>

Got it. Thx.

The variables I’d like to clear are set by user actions on this page, so can’t do it on the way in.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [November 19, 2021, 8:04pm UTC](https://community.glideapps.com/t/can-i-add-a-custom-action-to-the-standard-back-button-link/34789/4 "2021-11-19T20:04:57Z")

</div>

Are you sure? Is it because it’s a different table? You could create a single relation or single value (whole row) in the table that contains the button that goes to that screen. Have the relation or single value linked to the same row as the source of your screen. Then you can set column values through the relation or single value on the way into the screen.
