Request a demo Request a demo hbspt.forms.create({ region: "eu1", portalId: "143438306", formId: "970ea4a6-96f2-40d2-a3cd-265c1d0be27e", onFormSubmitted: () => { trackForm(); $("#hs-form-header-wrapper").hide(); let topPos = $(".hs-form-wrapper").offset().top - 180; $('html, body').scrollTop(topPos); }, onFormReady: function($form, ctx){ $('input[name="weblead_type"]').val("Demo request"); $('input[name="pagename"]').val("Request a demo"); $('input[name="page_url"]').val("https://www.cadac.com/de-en/request-demo/"); $('input[name="campaign_code"]').val(""); $('input[name="marketing_list_number"]').val(""); $('input[name="generatedid"]').val("0573a004-30e9-4eb7-87de-a49d7723c8e5"); $('input[name="ddlcountry"]').val("us"); $('input[name="bu"]').val("CDC"); $('input[name="company"]').val(""); $('input[name="firstname"]').val(""); $('input[name="lastname"]').val(""); $('input[name="email"]').val(""); $('input[name="phone"]').val(""); if(!!$('input[name="trial_options"]').length){ $('input[name="trial_options"]').on('change', () => { const selectionValue = $('input[name="trial_options"]:checked').val().split('||'); $('input[name="marketing_list_number"]').val(selectionValue[0]); $('input[name="download_link"]').val(selectionValue[1]); let productName = $('input[name="trial_options"]:checked').parent().text(); $('input[name="download_object"]').val(productName); $('textarea[name="message"]').val(`Interesse in: ${productName}. Heeft de software al ontvangen (automatisch).`); }); } } });