2

I have a modal window and I need to pop an alert box when user deletes a certain item on the screen as, "Are you sure you want to delete?". There is no way that I can remove this modal window. Is there a better way of displaying that alert message?

3

Instead of displaying such alert messages it is a good practice to provide an undo feature (see https://goodui.org/home.php#8).

Imagine that you just pressed an action button or link. Undos respect the initial human intent by allowing the action to happen smoothly first and foremost. Prompts on the other hand suggest to the user that he or she does not know what they are doing by questioning their intent at all times.

  • Whilst your answer might be correct, you should provide block quote of the key content that addresses the problem in your post as links can often change URLs. – RobbyReindeer Jun 14 '18 at 13:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.