# Glide back button vs native device back button

**URL:** <https://community.glideapps.com/t/glide-back-button-vs-native-device-back-button/61191>\
**Category:** Ask for Help\
**Created:** [April 30, 2023, 1:34pm UTC](https://community.glideapps.com/t/glide-back-button-vs-native-device-back-button/61191 "2023-04-30T13:34:28Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![agung\_Taufik](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/agung_taufik/32/2589_2.png) [@agung\_Taufik](https://community.glideapps.com/u/agung_Taufik)\
**Post date:** [April 30, 2023, 1:34pm UTC](https://community.glideapps.com/t/glide-back-button-vs-native-device-back-button/61191/1 "2023-04-30T13:34:28Z")

</div>

Hi…  
the expected behavior, when the user has selected a product, the user will not be able to re-select the same product.  
it works when the user presses the default Glide back button which is in the upper left corner.

> **[Screenrecorder-2023-04-30-20-16-12-468.mp4](https://drive.google.com/file/d/1ZzA2-YCZ7Y5Zc0O2If84Hpbe_oHFaN45/view?usp=share_link)**
>
> Google Drive file.

but when the user presses the default back button from the original device, it will go to the previous screen, and when the user selects the product it can still be done, and this is what I didn’t expect.  
how to prevent this from happening.

> **[Screenrecorder-2023-04-30-20-17-11-55.mp4](https://drive.google.com/file/d/1ZyVfC7div8BZSF0xBtFE6b6Ie0qjeBIW/view?usp=share_link)**
>
> Google Drive file.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [May 1, 2023, 12:23am UTC](https://community.glideapps.com/t/glide-back-button-vs-native-device-back-button/61191/2 "2023-05-01T00:23:44Z")

</div>

Shouldn’t you have a setup to hide the button when the user has “selected the product”?

---

<div class="post-metadata">

**Author:** ![agung\_Taufik](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/agung_taufik/32/2589_2.png) [@agung\_Taufik](https://community.glideapps.com/u/agung_Taufik)\
**Post date:** [May 1, 2023, 3:01am UTC](https://community.glideapps.com/t/glide-back-button-vs-native-device-back-button/61191/3 "2023-05-01T03:01:18Z")

</div>

> [@ThinhDinh](#):
>
> hide the button

yes i can hide it but i want it to stay there

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [May 1, 2023, 9:03am UTC](https://community.glideapps.com/t/glide-back-button-vs-native-device-back-button/61191/4 "2023-05-01T09:03:53Z")

</div>

Why do you want it to stay there if you don’t want people to click it a second time?

---

<div class="post-metadata">

**Author:** ![agung\_Taufik](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/agung_taufik/32/2589_2.png) [@agung\_Taufik](https://community.glideapps.com/u/agung_Taufik)\
**Post date:** [May 1, 2023, 10:27am UTC](https://community.glideapps.com/t/glide-back-button-vs-native-device-back-button/61191/5 "2023-05-01T10:27:16Z")

</div>

1.because that’s how the app should be, right?  
that’s why I created an action on the purchase button if the user double clicks on the button it just issues a notification that the product has been selected or the product is already in the shopping cart.

1. I want to keep the design of the shopping app.

okay, we’re back to my question.  
Is there a way to prevent or overcome this?

---

<div class="post-metadata">

**Author:** ![agung\_Taufik](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/agung_taufik/32/2589_2.png) [@agung\_Taufik](https://community.glideapps.com/u/agung_Taufik)\
**Post date:** [May 1, 2023, 10:29am UTC](https://community.glideapps.com/t/glide-back-button-vs-native-device-back-button/61191/6 "2023-05-01T10:29:48Z")

</div>

It seems that there are colleagues in the community who are experiencing the same thing as me.

> [@Go back on browser opens overlay, how to stop this](https://community.glideapps.com/t/go-back-on-browser-opens-overlay-how-to-stop-this/61209):
>
> Hi, I have a checkout like situation where the checkout page comes from a product overlay page. Everything is working fine but when a user presses “go back” button on their browser the glide page goes back to the product overlay - essentially allowing them to change their product again. How can I stop the overlay from appearing when user clicks go back? Is it possible? Thanks, Clare

---

<div class="post-metadata">

**Author:** ![kabookie](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/kabookie/32/10994_2.png) [@kabookie](https://community.glideapps.com/u/kabookie)\
**Post date:** [May 1, 2023, 3:35pm UTC](https://community.glideapps.com/t/glide-back-button-vs-native-device-back-button/61191/7 "2023-05-01T15:35:23Z")

</div>

Try creating a custom action to “go back” twice. I have done this to go back 3 screens to send the user where I want them after clicking.

---

<div class="post-metadata">

**Author:** ![Kiwi](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/kiwi/32/60332_2.png) [@Kiwi](https://community.glideapps.com/u/Kiwi)\
**Post date:** [May 1, 2023, 6:06pm UTC](https://community.glideapps.com/t/glide-back-button-vs-native-device-back-button/61191/8 "2023-05-01T18:06:54Z")

</div>

Ohh interesting concept! Thank you

I actually ended up hiding the buy button all together if they had purchased that item, and it’s working great

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [May 1, 2023, 10:57pm UTC](https://community.glideapps.com/t/glide-back-button-vs-native-device-back-button/61191/9 "2023-05-01T22:57:06Z")

</div>

I’m not sure I understand the flow. What does this button do? Does it add a row somewhere?

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/7/1/7144088794f1f6cffc7ca53778fea1183379311e.png)

If it adds a row somewhere, wouldn’t you be able to hide it if you don’t want users to click it again? If you don’t want to hide it, what’s your reason not to hide it?

> [@Kiwi](#):
>
> I actually ended up hiding the buy button all together if they had purchased that item, and it’s working great

What I tried to tell you was this. When the user finishes paying, you can have a flow to make that button visible again.

---

<div class="post-metadata">

**Author:** ![Sebastian\_H](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sebastian_h/32/57533_2.png) [@Sebastian\_H](https://community.glideapps.com/u/Sebastian_H)\
**Post date:** [May 4, 2023, 7:11pm UTC](https://community.glideapps.com/t/glide-back-button-vs-native-device-back-button/61191/10 "2023-05-04T19:11:54Z")

</div>

How can this be used to replace the built in back buttons?

---

<div class="post-metadata">

**Author:** ![kabookie](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/kabookie/32/10994_2.png) [@kabookie](https://community.glideapps.com/u/kabookie)\
**Post date:** [May 4, 2023, 10:12pm UTC](https://community.glideapps.com/t/glide-back-button-vs-native-device-back-button/61191/11 "2023-05-04T22:12:27Z")

</div>

I don’t try to replace them, I add a BACK button at the bottom of my screens with a custom action. That is usually where I’m at when I want to go back, I don’t want to have to scroll to the top to go back.

---

<div class="post-metadata">

**Author:** ![agung\_Taufik](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/agung_taufik/32/2589_2.png) [@agung\_Taufik](https://community.glideapps.com/u/agung_Taufik)\
**Post date:** [May 4, 2023, 11:32pm UTC](https://community.glideapps.com/t/glide-back-button-vs-native-device-back-button/61191/12 "2023-05-04T23:32:06Z")

</div>

Okay, thank you
