I want to tell the user that this item cannot be deleted because this is the only item left in the list.

1 Answer 1


Error message: "You need to have at least one item in this list."

Additionally, you can communicate this (im)possibility leveraging on the the Delete button.

  • Grey out the Delete button (that automatically sends the signal)
  • If they still attempt to click on it, you can then show the message.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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