document.addEventListener('DOMContentLoaded', function() { const assignedTo = document.getElementById('assigned_to'); if (assignedTo) { new Choices(assignedTo, { removeItemButton: true, }); } const category = document.getElementById('category_id'); if (category) { new Choices(category, { removeItemButton: true, }); } const location = document.getElementById('location_id'); if (location) { new Choices(location, { removeItemButton: true, }); } });