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

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.

1 Like

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?

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.

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.

Any ideas?

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

Thanks, I’ll do that!

1 Like