Speak to one of our world-leading life sciences experts

document.querySelectorAll('input#Job_Role + label + ul > li').forEach(function (el) { el.addEventListener('click', function () { const dropdownInput = document.querySelector('input[name="Job_Role"]'); if (el.innerText === 'Select') { dropdownInput.value = ''; } else { dropdownInput.value = el.innerText; } const dropdownLabel = document.querySelector('input#Job_Role + label'); dropdownLabel.children[0].innerHTML = el.innerText; dropdownLabel.click(); }); }); document.querySelectorAll('input#Country + label + ul > li').forEach(function (el) { el.addEventListener('click', function () { const dropdownInput = document.querySelector('input[name="Country"]'); if (el.innerText === 'Select') { dropdownInput.value = ''; } else { dropdownInput.value = el.innerText; } const dropdownLabel = document.querySelector('input#Country + label'); dropdownLabel.children[0].innerHTML = el.innerText; dropdownLabel.click(); }); }); /* Form Start Tracking (fires only once) */ let formStarted = false; document.querySelector("#TTAE").addEventListener("change", function () { if (!formStarted) { window.dataLayer?.push({ event: "formStart", formId: "TTAE" }); formStarted = true; } }); function fm_valid() { var isValid = true; document.querySelectorAll('[data-required]').forEach(function (el) { if (el.dataset.required == 'true') { const msgEl = document.querySelector('[data-name="' + el.name + '"]'); if (el.value.length == 0) { msgEl.innerHTML = "This field is required"; isValid = false; } else { msgEl.innerHTML = ""; } } }); return isValid; } window.dataLayer = window.dataLayer || []; document.getElementsByName("UTM_Content")[0].value = localStorage.getItem("danaher_utm_content") || ""; document.getElementsByName("UTM_Campaign")[0].value = localStorage.getItem("danaher_utm_campaign") || ""; document.getElementsByName("UTM_Medium")[0].value = localStorage.getItem("danaher_utm_medium") || ""; document.getElementsByName("UTM_Term")[0].value = localStorage.getItem("danaher_utm_term") || ""; document.getElementsByName("UTM_Source")[0].value = localStorage.getItem("danaher_utm_source") || ""; document.getElementsByName("UTM_NLC")[0].value = localStorage.getItem("danaher_utm_nlc") || ""; document.getElementsByName("Page_Track_URL")[0].value = localStorage.getItem("danaher_utm_previouspage") || ""; /* Form Load Tracking */ window.dataLayer.push({ event: "formLoad", formId: "TTAE" }); document.querySelector("#TTAE").addEventListener("submit", function (event) { if (fm_valid()) { getInquiry(); } else { event.preventDefault(); } }); function getInquiry() { const currentDate = new Date(); const year = currentDate.getUTCFullYear(); const month = String(currentDate.getUTCMonth() + 1).padStart(2, '0'); const day = String(currentDate.getUTCDate()).padStart(2, '0'); const hour = String(currentDate.getUTCHours()).padStart(2, '0'); const min = String(currentDate.getUTCMinutes()).padStart(2, '0'); const sec = String(currentDate.getUTCSeconds()).padStart(2, '0'); const milli = String(currentDate.getUTCMilliseconds()).padStart(3, '0'); const inquiry = year + month + day + hour + min + sec + milli; document.getElementsByName("Inquiry_Number")[0].value = inquiry; /* Form Submit Tracking */ window.dataLayer?.push({ event: "formSubmit", formId: "TTAE", inquiry: inquiry }); } .input-focus:focus { border: 1px solid #7523FF !important; outline: none; } .input-focus-checkbox { margin-top: 14px; margin-bottom: 14px; width: 16px; height: 16px; border: 1px; radius: 4px; accent-color: #7523FF; } .prior:checked ~ .prior-checked\:block { display: block; } .max-h-48 { max-height: 12rem; } .overflow-scroll { overflow-y: scroll; } .blue-gradient { background: linear-gradient(to right bottom,#430f9f,#5d12b5,#7814cc,#9414e2,#b110f7); }