Feel free to get in touch with us through any of the following means. Whether you have inquiries, collaboration opportunities, or just want to say hello, we're here to listen
Thank you for your submission. A trusted member of our team will be in touch shortly.
Oops! Something went wrong while submitting the form.
document.addEventListener("DOMContentLoaded", function () {
// Find the dropdown button text inside the toggle
const dropdownText = document.querySelector(".contacts-input-copy .select-service-text");
if (!dropdownText) {
console.warn("Dropdown text element not found. Check Webflow structure.");
return;
}
// Find all checkboxes inside the dropdown list
const checkboxes = document.querySelectorAll(".w-checkbox-input");
if (checkboxes.length === 0) {
console.warn("No checkboxes found. Check Webflow structure.");
return;
}
function updateDropdownLabel() {
let selectedOptions = [];
checkboxes.forEach((checkbox) => {
if (checkbox.checked) {
// Get the service label text (next sibling of input)
let label = checkbox.nextElementSibling;
if (label && label.classList.contains("service-label")) {
selectedOptions.push(label.innerText.trim());
}
}
});
// Update the dropdown button text
dropdownText.innerText = selectedOptions.length > 0 ? selectedOptions.join(", ") : "Select services...";
}
// Attach event listeners to all checkboxes
checkboxes.forEach((checkbox) => {
checkbox.addEventListener("change", updateDropdownLabel);
});
console.log("Dropdown service selection script loaded successfully.");
});