# Back button function - perhaps not the intended functionality...?

**URL:** <https://community.glideapps.com/t/back-button-function-perhaps-not-the-intended-functionality/64548>\
**Category:** Report a Bug\
**Created:** [July 31, 2023, 2:21pm UTC](https://community.glideapps.com/t/back-button-function-perhaps-not-the-intended-functionality/64548 "2023-07-31T14:21:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![spamtes](https://avatars.discourse-cdn.com/v4/letter/s/f17d59/32.png) [@spamtes](https://community.glideapps.com/u/spamtes)\
**Post date:** [July 31, 2023, 2:21pm UTC](https://community.glideapps.com/t/back-button-function-perhaps-not-the-intended-functionality/64548/1 "2023-07-31T14:21:04Z")

</div>

I’m not sure if this is expected functionality but here it goes:

Bug Description:

- Back button function doesn’t work as expected after pressing cancel on forms.

**Expected behavior:**

- Pressing the back button should return to ‘screens’, not overlay forms.

**How to replicate:**

1. Create a ‘new form’ action.
2. When the new form appears, click “Cancel”
3. Navigate back (using back on the phone / tablet / browser / etc)
4. Observe that it navigates back to the cancelled form overlay instead of previous screen.

Details:

It appears that ‘back’ function simply goes to the previous step in the history.

[Screen 1] → \<Press ‘New Form Action’ from Screen 1\> → [Screen 2: New Form Overlay shows] → \<Press ‘Cancel’ in Screen 2\> → [Screen 1] → → [Screen 2: New Form Overlay]

What would be desired is, since the user decided to cancel the new form, remove the [Screen 2: New Form Overlay] from the history so it can never be returned to, since it was cancelled.

[Screen 1] → \<Press ‘New Form Action’ from Screen 1\> → [Screen 2: New Form Overlay shows] → \<Press ‘Cancel’ in Screen 2\> → [Screen 1] → → [Screen 1]

Suggested Solution:  
If a form is displayed as “Slide in” or “Overlay”, if the user presses ‘Cancel’ on the form, a back button press should never return to the cancelled form.

If a form is displayed as “Current” or “Main”, if the user presses cancel on the form, a back button press can return to the cancelled form.

---

<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:** [August 1, 2023, 12:48am UTC](https://community.glideapps.com/t/back-button-function-perhaps-not-the-intended-functionality/64548/2 "2023-08-01T00:48:17Z")

</div>

Is this behaviour specific to the back button on mobiles? I just tried on a desktop device and it works correctly.

Can you record a video and let us know which type of device are you using?

---

<div class="post-metadata">

**Author:** ![spamtes](https://avatars.discourse-cdn.com/v4/letter/s/f17d59/32.png) [@spamtes](https://community.glideapps.com/u/spamtes)\
**Post date:** [August 1, 2023, 1:31am UTC](https://community.glideapps.com/t/back-button-function-perhaps-not-the-intended-functionality/64548/3 "2023-08-01T01:31:26Z")

</div>

Hello Thinh,

Yes, back button on mobiles, and the back button on the layout edit screen.

Here’s a video showing the difference when using the ‘device back’ and the back button in the upper left corner.

[![](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/2/424e9e28b77336ca4d59e3a6bb1341fcc253deb7.jpeg "record\_glide") ](https://www.youtube.com/watch?v=VYfZ3Fed7Yw)

After pressing the orange-pink button, and pressing cancel,  
The **top left corner back button** gives the desired result,  
**Device back button** (swipe from the side on android) gives the undesired result.

---

<div class="post-metadata">

**Author:** ![spamtes](https://avatars.discourse-cdn.com/v4/letter/s/f17d59/32.png) [@spamtes](https://community.glideapps.com/u/spamtes)\
**Post date:** [August 3, 2023, 6:32pm UTC](https://community.glideapps.com/t/back-button-function-perhaps-not-the-intended-functionality/64548/4 "2023-08-03T18:32:30Z")

</div>

Any ideas?

---

<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:** [August 4, 2023, 1:17am UTC](https://community.glideapps.com/t/back-button-function-perhaps-not-the-intended-functionality/64548/5 "2023-08-04T01:17:34Z")

</div>

> [@How to open a support ticket?](https://community.glideapps.com/t/how-to-open-a-support-ticket/59883/2):
>
> Please note: the option to create a support ticket is only available if your App is in a Pro, Business or Enterprise Team. If you need help with a Billing Issue (on any plan), you should open a Billing Enquiry via the [Glide Support Page](https://www.glideapps.com/support). To create a Support Ticket: Open the App that is giving you problems, and go to Settings → Contact Support: Glide will prompt you to create a support link for your App. Click on Create Link:

Not sure if the team can do something about the Android’s native back button, but a support ticket is your best chance.

---

<div class="post-metadata">

**Author:** ![spamtes](https://avatars.discourse-cdn.com/v4/letter/s/f17d59/32.png) [@spamtes](https://community.glideapps.com/u/spamtes)\
**Post date:** [August 4, 2023, 4:38pm UTC](https://community.glideapps.com/t/back-button-function-perhaps-not-the-intended-functionality/64548/6 "2023-08-04T16:38:51Z")

</div>

Thanks, I’ll do that!
