Hello and Good Day, Everyone,
Yesterday, I asked my question below in an older thread thinking that the topics were related [Multiple functions on one button], but I'm a bit new to this forum experience in general and a fellow responder, @Drrickryp, suggested I create a new thread so here it goes!
In my app there is an Edit Screen with (4) buttons: [Save], [Cancel], & two that are used for [Navigate to Email Screen] purposes. I've located the OnSuccess: "( ) Back" function which helps direct the first two standard buttons properly, but the two other buttons that should direct the user to an Email Screen end up Back at the same page as the other two buttons were directed to (Previous Screen).
So, the question I have is this: Is it possible to either create a second OnSuccess function, total of 2, the first to default ( ) Back while the second one is for Navigate(Email Screen) within the same Edit Screen? Or should I insert an IF statement based on which button was used?
Note: I've spent quite a bit of time searching this community and I've found a suggestion to use variables specific to which button is pressed. My concern with using the second idea is that I do not see how that saves any changes which need to be brought over to the Email Screen.
This is what I have within the OnSuccess for the form (each button's OnSelect feature includes the Set(varNav) correctly to match):
If(varNav = "Navigate",
Navigate('Email Screen'),
If(varNav="ReviewScreen",
Navigate('Review Screen'),
ResetForm(EditForm1)));
Please let me know what I need to do differently as this does not work at all, to navigate or save changes.
Thanks!