Book a Talkative Demo

function async(u, c) { var d = document, t = 'script', o = d.createElement(t), s = d.getElementsByTagName(t)[0]; o.src = 'https://' + u; if (c) { o.addEventListener('load', function (e) { c(null, e); }, false); } s.parentNode.insertBefore(o, s); } async('js.hsforms.net/forms/current.js', function() { hbspt.forms.create({ css: '', portalId: '457312', formId: '4f0862cc-cf65-4fe7-8f23-546908b44287', target: '#hubspotform-submitted-2-1', onFormReady: function(form) { function checkEvent() { if (event.data.type === 'hsFormCallback') { if (event.data.eventName === 'onFormSubmitted') { const formWrapper = document.querySelector('.form-wrapper-2'); const headline = formWrapper.querySelector('.js-form-headline'); const content = formWrapper.querySelector('.js-form-content'); if (headline) { headline.style.display = 'none'; } if (content) { content.style.display = 'none'; } const successMessage = formWrapper.querySelector('.submitted-message'); if (successMessage) { const allForms = [...document.querySelectorAll('#hsForm_4f0862cc-cf65-4fe7-8f23-546908b44287')]; if (allForms.length) { allForms.forEach(function(form) { const parent = form.parentElement; const wrapper = parent.parentElement; const headline = wrapper.querySelector('.js-form-headline'); const content = wrapper.querySelector('.js-form-content'); parent.innerHTML = successMessage.innerHTML; if (headline) { headline.style.display = 'none'; } if (content) { content.style.display = 'none'; } }); } } } } } window.addEventListener('message', checkEvent); } }); (function() { window.jQuery = window.jQuery || function(nodeOrSelector) { if (typeof(nodeOrSelector) == 'string') { return document.querySelector(s); } return nodeOrSelector; }; })(); });