budibase icon indicating copy to clipboard operation
budibase copied to clipboard

Add settings in Nav Links to prompt user before navigating away

Open andz-bb opened this issue 3 months ago • 2 comments

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.

image

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

andz-bb avatar May 28 '24 14:05 andz-bb