TransWikia.com

Delete input with value in (confirmation?)

User Experience Asked by user2762414 on December 25, 2020

I just got across this thread:

Allowing the user to add input fields

As I am in similar situation I would like to ask from UX perspective, what happens when the user clicks 4 times to add field and then he enters some value and press delete on filled input. Does it just delete or is there any confirmation? Are there any real-life examples in programs to see this in action and how other companies have done this?

One Answer

There are really only 3 viable methods for handling the deleting of data:

  1. Prompt a confirmation, and make it loud!
  2. Soft delete the data so it can easily be recoverable if needed (this is much more work to implement though)
  3. Have an "undo" function. This is mainly only applicable to document editing types of features, and again is a lot of extra work

Never just delete data from a single click. It's far too easy for it to accidentally happen.


With that in mind, let's look at your specific scenario...

You have 2 main use cases, and I will give my suggestion for both.

  1. User has added new field, typed a value, and saved it to the database. In this case, you most definitely want to prompt for confirmation to ensure the user doesn't accidentally delete existing data.

  2. User has added new field, typed a value, but not yet saved to the database. This is less important for you to need to prompt for confirmation, but still should be considered. I would say you need to make a judgement call based on the type of data your input fields accept. You need to weigh up "annoying the user with needless prompts" vs "annoying the user with loss of entered data".


In summary, I will suggest that you always prompt for delete if the input contains a value. If a good enough reason appears down the line to remove the prompt then wait for that reason, don't try to preempt it.

I won't provide examples but I think you will find almost every application that's worth using will have some way to either confirm deletion, or provides an easy recovery/undo feature.

Answered by musefan on December 25, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP