Go to tab saves changes

I’m working on the user profile screen, where the user has the ability to modify certain data (not email address).

There are two buttons: UPDATE PROFILE and CANCEL. This issue is with the Cancel button.

CANCEL has an action to go to a specific tab. However, the user’s changes are saved prior to the redirect.

I thought go to tab was a navigation action only. Should I be using a different something else?

Thanks!

I’d recommend displaying information on the user profile screen (vs. displaying entry fields), and adding a button labeled “Edit Profile”. Configure its action to “Show edit screen > this item/user profile”. This will behave as you expect, allowing users to discard changes with the built-in “Cancel” button.

2 Likes

As Megann said above, this sounds like you’re allowing them to edit info right on a details screen. You should only allow them to edit using an edit screen.

2 Likes