{"id":8303,"date":"2023-12-18T06:47:43","date_gmt":"2023-12-18T06:47:43","guid":{"rendered":"https:\/\/ferroamp.com\/find-installers\/bli-kontaktad\/"},"modified":"2025-04-09T09:18:54","modified_gmt":"2025-04-09T09:18:54","slug":"get-in-touch","status":"publish","type":"page","link":"https:\/\/ferroamp.com\/en\/find-installers\/get-in-touch\/","title":{"rendered":"Get in touch"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"8303\" class=\"elementor elementor-8303 elementor-6078\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-4e1e8f5 pt pb e-con-full full-width layout-no no e-flex e-con e-parent\" data-id=\"4e1e8f5\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t<div class=\"elementor-element elementor-element-d39b770 container-wide e-con-full layout-no no e-flex e-con e-child\" data-id=\"d39b770\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-98ac3e0 elementor-widget elementor-widget-heading\" data-id=\"98ac3e0\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Be contacted by an installer<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-203c2ad elementor-widget elementor-widget-text-editor\" data-id=\"203c2ad\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Do you have questions about what a Ferroamp system could do for you or which solutions would suit your needs?<\/p><p>Fill in your details in the form, and we\u2019ll make sure one of our trusted installer partners reaches out to you shortly.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-b6d1241 container layout-grid e-con-full no e-flex e-con e-child\" data-id=\"b6d1241\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t<div class=\"elementor-element elementor-element-5893af9 full-width layout-no no e-flex e-con-boxed e-con e-child\" data-id=\"5893af9\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-8ed6450 elementor-widget__width-inherit hubspot-form salj elementor-widget elementor-widget-html\" data-id=\"8ed6450\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<script charset=\"utf-8\" type=\"text\/javascript\" src=\"\/\/js.hsforms.net\/forms\/embed\/v2.js\"><\/script>\n<script>\n  hbspt.forms.create({\n    region: \"na1\",\n    portalId: \"9064662\",\n    formId: \"2d208085-ddf7-440c-a0db-319bbab84544\"\n  });\n<\/script>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-851da08 elementor-widget elementor-widget-html\" data-id=\"851da08\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<script src=\"https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/1.12.4\/jquery.min.js\"><\/script>\n<script>\ndocument.addEventListener('DOMContentLoaded', () => {\n  function getQueryParam(param) {\n    const urlParams = new URLSearchParams(window.location.search);\n    return urlParams.get(param);\n  }\n\n  const installerId = getQueryParam('installer_id');\n  if (!installerId) return;\n\n  \/\/ Fetch installer data from the API\n  fetch(`\/wp-json\/custom\/v1\/get-email?installer_id=${encodeURIComponent(installerId)}`)\n    .then(response => response.json())\n    .then(data => {\n      if (!data.email && !data.title) {\n        console.warn('No data returned for installer');\n        return;\n      }\n\n      \/\/ Poll every 100ms until both fields exist, or max out after 5 seconds\n      let attempts = 0;\n      const maxAttempts = 50; \/\/ 100ms * 50 = 5 seconds\n\n      const interval = setInterval(() => {\n        const emailInput = document.querySelector('[name=\"latest_installer_contact_e_mail\"]');\n        const companyNameInput = document.querySelector('[name=\"last_installer_company_name_v2\"]');\n\n        if (emailInput && companyNameInput) {\n          if (data.email) {\n            emailInput.value = data.email;\n            console.log('Email set:', data.email);\n          }\n\n          if (data.title) {\n            companyNameInput.value = data.title;\n            console.log('Company name set:', data.title);\n          }\n\n          clearInterval(interval); \/\/ stop polling once filled\n        }\n\n        attempts++;\n        if (attempts >= maxAttempts) {\n          console.warn('Form fields did not load in time.');\n          clearInterval(interval);\n        }\n      }, 100);\n    })\n    .catch(error => {\n      console.error('Error fetching installer data:', error);\n    });\n});\n\n\n  \/\/ Handle the \"Other\" business type selection\n  $(document).on('change', '#0-2\\\\\/businesstype-65ba4b4b-50d5-4501-ab97-535a6268cedd', function() {\n    if (this.value === 'Other') {\n      $(\".hs_0-2\\\\\/business_type_other\").addClass(\"show\");\n      $('#0-2\\\\\/business_type_other-65ba4b4b-50d5-4501-ab97-535a6268cedd').prop('required', true);\n    } else {\n      $(\".hs_0-2\\\\\/business_type_other\").removeClass(\"show\");\n      $('#0-2\\\\\/business_type_other-65ba4b4b-50d5-4501-ab97-535a6268cedd').prop('required', false);\n    }\n  });\n\n  \/\/ Set the inquiry_date input field on window load\n  $(window).on('load', function() {\n    var currentDate = new Date();\n    var day = (\"0\" + currentDate.getDate()).slice(-2);\n    var month = (\"0\" + (currentDate.getMonth() + 1)).slice(-2);\n    var today = currentDate.getFullYear() + \"-\" + month + \"-\" + day;\n    $('input[name=\"inquiry_date\"]').val(today);\n  });\n\n  \/\/ Hide parent element if the inner div is not visible\n  $(window).on('load', function() {\n    $('.form-columns-1 div').each(function() {\n      if ($(this).css('display') === 'none') {\n        $(this).parent().addClass('hide');\n      }\n    });\n  });\n\n  \/\/ Listen for input events to set the contact email based on the company name\n  document.addEventListener('DOMContentLoaded', () => {\n    \/\/ Function to set the contact email based on the company name value\n    function setContactEmail() {\n      const companyNameInput = document.querySelector('[name=\"latest_installer_company_name\"]');\n      const contactEmailInput = document.querySelector('[name=\"latest_installer_contact_e_mail\"]');\n\n      if (companyNameInput && contactEmailInput) {\n        const companyName = companyNameInput.value.trim();\n        if (companyName) {\n          contactEmailInput.value = companyName;\n          console.log('Contact email set to:', companyName);\n        } else {\n          console.warn('Company name input is empty.');\n        }\n      } else {\n        console.error('Required input fields not found.');\n      }\n    }\n\n    \/\/ Attach the input event listener once the company name input is available\n    function attachInputListener() {\n      const companyNameInput = document.querySelector('[name=\"latest_installer_company_name\"]');\n      if (companyNameInput) {\n        companyNameInput.addEventListener('input', setContactEmail);\n        \/\/ Run once initially to catch any pre-filled value\n        setContactEmail();\n      } else {\n        console.error('Company name input not found.');\n      }\n    }\n\n    \/\/ Poll for the presence of the company name input (every 100ms)\n    const intervalId = setInterval(() => {\n      if (document.querySelector('[name=\"latest_installer_company_name\"]')) {\n        attachInputListener();\n        clearInterval(intervalId);\n      }\n    }, 100);\n  });\n<\/script>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Be contacted by an installer Do you have questions about what a Ferroamp system could do for you or which solutions would suit your needs? Fill in your details in the form, and we\u2019ll make sure one of our trusted installer partners reaches out to you shortly.<\/p>\n","protected":false},"author":13,"featured_media":0,"parent":6108,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_header_footer","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-8303","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Get in touch - Ferroamp<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ferroamp.com\/en\/find-installers\/get-in-touch\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Get in touch - Ferroamp\" \/>\n<meta property=\"og:description\" content=\"Be contacted by an installer Do you have questions about what a Ferroamp system could do for you or which solutions would suit your needs? Fill in your details in the form, and we\u2019ll make sure one of our trusted installer partners reaches out to you shortly.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ferroamp.com\/en\/find-installers\/get-in-touch\/\" \/>\n<meta property=\"og:site_name\" content=\"Ferroamp\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-09T09:18:54+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/ferroamp.com\\\/en\\\/find-installers\\\/get-in-touch\\\/\",\"url\":\"https:\\\/\\\/ferroamp.com\\\/en\\\/find-installers\\\/get-in-touch\\\/\",\"name\":\"Get in touch - Ferroamp\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ferroamp.com\\\/en\\\/#website\"},\"datePublished\":\"2023-12-18T06:47:43+00:00\",\"dateModified\":\"2025-04-09T09:18:54+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/ferroamp.com\\\/en\\\/find-installers\\\/get-in-touch\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/ferroamp.com\\\/en\\\/find-installers\\\/get-in-touch\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/ferroamp.com\\\/en\\\/find-installers\\\/get-in-touch\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/ferroamp.com\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Find Installers\",\"item\":\"https:\\\/\\\/ferroamp.com\\\/en\\\/?page_id=6108\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Get in touch\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/ferroamp.com\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/ferroamp.com\\\/en\\\/\",\"name\":\"Ferroamp\",\"description\":\"smart electricity control\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/ferroamp.com\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Get in touch - Ferroamp","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ferroamp.com\/en\/find-installers\/get-in-touch\/","og_locale":"en_US","og_type":"article","og_title":"Get in touch - Ferroamp","og_description":"Be contacted by an installer Do you have questions about what a Ferroamp system could do for you or which solutions would suit your needs? Fill in your details in the form, and we\u2019ll make sure one of our trusted installer partners reaches out to you shortly.","og_url":"https:\/\/ferroamp.com\/en\/find-installers\/get-in-touch\/","og_site_name":"Ferroamp","article_modified_time":"2025-04-09T09:18:54+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/ferroamp.com\/en\/find-installers\/get-in-touch\/","url":"https:\/\/ferroamp.com\/en\/find-installers\/get-in-touch\/","name":"Get in touch - Ferroamp","isPartOf":{"@id":"https:\/\/ferroamp.com\/en\/#website"},"datePublished":"2023-12-18T06:47:43+00:00","dateModified":"2025-04-09T09:18:54+00:00","breadcrumb":{"@id":"https:\/\/ferroamp.com\/en\/find-installers\/get-in-touch\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ferroamp.com\/en\/find-installers\/get-in-touch\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/ferroamp.com\/en\/find-installers\/get-in-touch\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ferroamp.com\/en\/"},{"@type":"ListItem","position":2,"name":"Find Installers","item":"https:\/\/ferroamp.com\/en\/?page_id=6108"},{"@type":"ListItem","position":3,"name":"Get in touch"}]},{"@type":"WebSite","@id":"https:\/\/ferroamp.com\/en\/#website","url":"https:\/\/ferroamp.com\/en\/","name":"Ferroamp","description":"smart electricity control","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ferroamp.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/ferroamp.com\/en\/wp-json\/wp\/v2\/pages\/8303","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ferroamp.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ferroamp.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ferroamp.com\/en\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/ferroamp.com\/en\/wp-json\/wp\/v2\/comments?post=8303"}],"version-history":[{"count":0,"href":"https:\/\/ferroamp.com\/en\/wp-json\/wp\/v2\/pages\/8303\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/ferroamp.com\/en\/wp-json\/wp\/v2\/pages\/6108"}],"wp:attachment":[{"href":"https:\/\/ferroamp.com\/en\/wp-json\/wp\/v2\/media?parent=8303"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}