Hi @JanaKH,
You can achieve this by following these steps. First, set a variable on the button or icon that enables users to edit the form, like:
Set(AllowNavigation, false)
Then, on your form submit button, update the variable to allow users to navigate using the formula:
Set(AllowNavigation, true)
Finally, add the following logic to your back button:
If(AllowNavigation, Back(), Notify("Please Save The Record Before Navigating"))
This logic will check if the variable "AllowNavigation" is true, and if so, it will navigate back. If the variable is false, it will display a notification asking the user to save the record before navigating.
I hope this helps! Let me know if you have any further questions.
If you found my answer helpful, please consider giving it a thumbs-up or a like. Your feedback is greatly appreciated!
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.