@sygc601 - assuming your "basic form" is an EditForm control, you can leverage the Unsaved property.
For example:
1. On the OnSelect property of your Save button, enter:
If(
'Your Form'.Unsaved && 'Your Form'.Mode = FormMode.Edit,
UpdateContext({ctx_show_unsaved_dialog: true}),
Navigate(
Screen1,
ScreenTransition.Fade
)
);
2. Insert a Container control into your Screen
3. Insert a Label control into the Container and enter a warning message. E.g.
"If you exit this screen any unsaved changes will be lost.
Are you sure you want to exit this screen?"
4. Insert a two Button controls inside the Container (a "Yes" Button and a "No" Button).
5. On the OnSelect property of the Yes Button, enter:
UpdateContext({ctx_show_unsaved_dialog: false});
Navigate(
Screen1,
ScreenTransition.Fade
)
6. On the OnSelect property of the No Button, enter:
UpdateContext({ctx_show_unsaved_dialog: false})
7. On the Visible property of your Container, enter:
ctx_show_unsaved_dialog