budibase
budibase copied to clipboard
Add settings in Nav Links to prompt user before navigating away
Discussed in https://github.com/Budibase/budibase/discussions/13783
Originally posted by mikesealey May 28, 2024
When using Actions in the On Click
of buttons we have the option to prompt a user "Are you sure you want to continue" or similar.
Occasionally, users can mistakenly click navigation links whilst completing a form, which would result in the loss of any unsaved data. We should add the option to include an "Are you sure. you wish to leave this page?" prompt.
This could take the form of a single configurable setting called "Confirm Navigation" (or similar), or it could follow the same format as Button
On Click
Actions, with careful consideration given to appropriate permitted/forbidden actions.
Currently, my workaround is to hide the navigation entirely, and rebuild it using many containers, but this leaves a lot to be desired from a maintainability perspective. Example: Prompt User Before Navigating Away-export-1716890940854.tar.gz