Does anyone know if there is a way to delete all list items in a drop-down, instead of one by one? I want to paste in a new list from excel, but delete the old one first.
There is a clearItems() method on the Dropdown that will remove all items in the list. Note that if the user already selected something then you will also have to clear the rawValue property as well: