1

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

2

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, privacy policy and cookie policy

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