Modify condition such that user cannot leave the page without saving changes on current page
I have an application with apage that has form to input changes. Below it there are 2 buttons, Save and Cancel. Whne user clicks on save it gives pop-up to either save changes and go to homepage or stay there. however the user can exit the page without saving changes by either clicking on any navigation bar buttons at side mistakenly . Is there a way so that the pop-up condition i have appears whenever i try exiting the page mistakenly without saving the changes? Or for that specific page i can remove navigation bar if thats possible? What could be the best way to tackle this?
It is possible to not have navigation bar on that page. You can remove the navigation bar from the page layout you are using on that page.
For example, you can delete the highlighted navigation bar from the page layout
But note that it will be removed from all the pages where this layout is used, so it would be better to have a seperate layout for your page.