Reputation: 13101
View Users page lists all users in the system. You can multiselect users via checkboxes and press the 'Remove' button to delete them from the system. We throw a confirmation dialog, to ask if the end user wanted to delete the users. If he presses the 'Ok' button we remove the users, if he presses the 'Cancel' button we don't perform any action. Should we remove the user selections made in the check-box when the user hits the 'Cancel' button or leave the selections as it is. What would be the best practice?
Upvotes: 0
Views: 63
Reputation: 29580
I'd recommend to not use a checkbox list, but a plain list: commands simply operate on the selected rows. Of course the selection remains after canceling the dialog — canceling always should keep the system state as it was before opening the dialog.
Upvotes: 1
Reputation: 386210
For even better usability, consider not having the confirmation dialog. Instead, provide a way for the user to undo the deletion later.
Why? Probably 99 times out of 100 (or maybe 999 out of 1000) they really mean to delete the users (unless you make it too easy to accidentally delete). So why inconvenience them 99 times out of 100 asking them to confirm, when all you really need to do is inconvenience them once when they want to undo the deletion.
Upvotes: 2
Reputation: 19356
Keep them selected please!
The user may just have hit the wrong button. Doesn't mean (s)he selected the wrong users...
Upvotes: 4