Marcar uma data Marcar uma data hbspt.forms.create({ region: "eu1", portalId: "143438306", formId: "45076958-9f36-4387-a0f4-b67aa649108b", 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("Appointment request"); $('input[name="pagename"]').val("Marcar uma data"); $('input[name="page_url"]').val("https://www.cadac.com/pt/data/"); $('input[name="campaign_code"]').val(""); $('input[name="marketing_list_number"]').val(""); $('input[name="generatedid"]').val("a97c5bd1-b70b-40c4-b1a4-61de0e35ee3a"); $('input[name="ddlcountry"]').val("us"); $('input[name="bu"]').val("CDC"); 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).`); }); } } });