{"id":38349,"date":"2022-12-11T01:54:20","date_gmt":"2022-12-11T01:54:20","guid":{"rendered":"https:\/\/staging.totara.fortyapp.com\/become-a-partner-form\/"},"modified":"2026-03-29T10:05:05","modified_gmt":"2026-03-29T10:05:05","slug":"become-a-partner-form","status":"publish","type":"page","link":"https:\/\/staging.totara.fortyapp.com\/us\/become-a-partner-form\/","title":{"rendered":"Become a partner form"},"content":{"rendered":"\n<div class='standard-header-container themeGreen ' style=\"\">\n  <div class='backgroundImageWrapper'>\n    <img decoding=\"async\"\n      class='backgroundImage' \n      loading=\"lazy\"\n      src=\"https:\/\/staging.totara.fortyapp.com\/wp-content\/themes\/totara\/assets\/images\/bg-standard-hero-green.png\"  \n      sizes=\"100vw\"\n      alt=\"Background pattern\"\n    \/>\n  <\/div>\n  <div class='wrapper'>\n    <div class='detailsWrapper'>\n      <div class='details'>\n                          <h1 class='title  fontLight'>Become a Partner\n<\/h1>\n                          <p class='description fontLight'>Grow your business with the world&#8217;s most flexible learning and performance solution<\/p>\n                      <\/div>\n    <\/div>\n    \n        \n  <\/div>\n<\/div>\n\n\n<div class='newsletter-hubspot-container themeLightGrey padding-no'>\n  <div class='wrapper'>\n          <div class='image-wrapper'>\n                  <img decoding=\"async\"\n            class='image'\n            loading='lazy'\n            alt=\"Background pattern\" \n            src=\"https:\/\/staging.totara.fortyapp.com\/wp-content\/themes\/totara\/assets\/images\/bg-cta-light-grey.png\"\n            sizes=\"(min-width: 1440px) 708px, (min-width: 768px) 50vw, 100vw\"\n          \/>\n              <\/div>\n    \n    <div class='content-wrapper'>\n            <div class='form-wrapper grey-background-no'>\n                                                <div class='description fontDark'>Enter your details to book a meeting with one of our Partner Recruitment Managers.\n<\/div>\n                                                <div id=\"hubspot-form-container\">\n            <script charset=\"utf-8\" type=\"text\/javascript\" src=\"\/\/js.hsforms.net\/forms\/embed\/v2.js\"><\/script><script> hbspt.forms.create({ portalId: \"3415253\", formId: \"ce6e8c4a-0059-4af3-b679-aed0d0203347\", region: \"na1\", onFormSubmitted: function($form) { console.log(\"Form submitted!\"); const countryField = $form.find('select[name=\"country\"]').val()?.trim().toLowerCase(); console.log(\"Country field value:\", countryField); const redirectURL1 = \"https:\/\/resources.totara.com\/meetings\/mariana-robson\"; const redirectURL2 = \"https:\/\/meetings.hubspot.com\/dan-baddeley\/60-min-30-min-and-15-min-meeting\"; const validCountries = [ \"ecuador\", \"colombia\", \"argentina\", \"uruguay\", \"bolivia\", \"paraguay\", \"portugal\", \"spain\", \"venezuela\", \"netherlands\", \"nicaragua\", \"belgium\", \"el salvador\", \"luxembourg\", \"panama\", \"brazil\", \"guatemala\", \"italy\", \"honduras\", \"mexico\", \"suriname\", \"france\", \"chile\", \"peru\", \"south africa\", \"nigeria\", \"morocco\", \"kenya\", \"angola\", \"botswana\" ]; const redirectURL = validCountries.includes(countryField) ? redirectURL1 : redirectURL2; console.log(\"Redirecting to:\", redirectURL); setTimeout(() => { window.location.href = redirectURL; }, 1000); } }); <\/script>          <\/div>\n          <div id=\"hubspot-fallback-message\" style=\"display: none; padding: 20px; background-color: #f8f9fa; border: 1px solid #dee2e6; border-radius: 8px;\">\n            <p style=\"margin: 0; font-size: 14px;\">\n              This form may be blocked by your browser&#8217;s privacy settings (e.g., Firefox Enhanced Tracking Protection). Please email us at <a href=\"mailto:marketing@totara.com\" style=\"color: #007ab8;text-decoration: none;\">marketing@totara.com<\/a>.\n            <\/p>\n          <\/div>\n              <\/div>\n    <\/div>\n  <\/div>\n<\/div>\n\n<script>\n  \/\/If the form has a dynamic content field for hubspot automation workflows, it will grab that ACF value and plop it inside of the embedded iframe form\n  jQuery(document).ready(function ($) {\n    let formDetected = false;\n    let fallbackShown = false;\n\n    \/\/ Function to check for HubSpot form and show fallback if needed\n    function checkForHubSpotForm() {\n      const hubspotContainer = document.getElementById('hubspot-form-container');\n      const fallbackMessage = document.getElementById('hubspot-fallback-message');\n      \n      if (!hubspotContainer || !fallbackMessage || fallbackShown) {\n        return;\n      }\n\n      \/\/ Check for various HubSpot form elements\n      const hsForm = hubspotContainer.querySelector('.hs-form');\n      const hsIframe = hubspotContainer.querySelector('.hs-form-iframe');\n      const hsScript = hubspotContainer.querySelector('script[src*=\"js.hsforms.net\"]');\n      const hasHubSpotContent = hubspotContainer.innerHTML.trim().length > 0;\n\n      if (hsForm || hsIframe || hsScript) {\n        formDetected = true;\n      } else if (hasHubSpotContent && !formDetected) {\n        \/\/ If there's content but no recognizable HubSpot elements after timeout, show fallback\n        setTimeout(function() {\n          if (!formDetected && !fallbackShown) {\n            fallbackMessage.style.display = 'block';\n            hubspotContainer.style.display = 'none';\n            fallbackShown = true;\n          }\n        }, 2000);\n      } else if (!hasHubSpotContent) {\n        \/\/ If container is completely empty, show fallback immediately\n        fallbackMessage.style.display = 'block';\n        hubspotContainer.style.display = 'none';\n        fallbackShown = true;\n      }\n    }\n\n    \/\/ Initial check\n    setTimeout(checkForHubSpotForm, 1000);\n    \n    \/\/ Additional checks at intervals\n    setTimeout(checkForHubSpotForm, 3000);\n\n    setTimeout(function() {\n      const fieldElement = document.querySelector('input[name=lead_source_description]');\n      let iframe = document.querySelector('.hs-form-iframe');\n\n      if (iframe && iframe?.contentWindow) {\n        let iframeDocument = iframe.contentWindow.document;\n        let input = iframeDocument.querySelector('input[name=lead_source_description]');\n        if (input) {\n          input.value = 'Become a partner form';\n        }\n      }\n    }, 5000);\n  });\n<\/script>\n\n\n<div class='stats-block-container themeGreen'>\n  <div class='wrapper'>\n          <h2 class='title'>Trusted globally at every scale\n<\/h2>\n        <div class='stats'>\n                        <div class='stat'>\n            <div class='statTitle'>Customers<\/div>\n            <div class='statValue'>1500+<\/div>\n          <\/div>\n                  <div class='stat'>\n            <div class='statTitle'>Users<\/div>\n            <div class='statValue'>20m+<\/div>\n          <\/div>\n                  <div class='stat'>\n            <div class='statTitle'>Partners<\/div>\n            <div class='statValue'>75+<\/div>\n          <\/div>\n                  <\/div>\n  <\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"tax\/tags":[],"tax\/topics":[],"class_list":["post-38349","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/staging.totara.fortyapp.com\/us\/wp-json\/wp\/v2\/pages\/38349","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/staging.totara.fortyapp.com\/us\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/staging.totara.fortyapp.com\/us\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/staging.totara.fortyapp.com\/us\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/staging.totara.fortyapp.com\/us\/wp-json\/wp\/v2\/comments?post=38349"}],"version-history":[{"count":2,"href":"https:\/\/staging.totara.fortyapp.com\/us\/wp-json\/wp\/v2\/pages\/38349\/revisions"}],"predecessor-version":[{"id":74482,"href":"https:\/\/staging.totara.fortyapp.com\/us\/wp-json\/wp\/v2\/pages\/38349\/revisions\/74482"}],"wp:attachment":[{"href":"https:\/\/staging.totara.fortyapp.com\/us\/wp-json\/wp\/v2\/media?parent=38349"}],"wp:term":[{"taxonomy":"tag","embeddable":true,"href":"https:\/\/staging.totara.fortyapp.com\/us\/wp-json\/wp\/v2\/tax\/tags?post=38349"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/staging.totara.fortyapp.com\/us\/wp-json\/wp\/v2\/tax\/topics?post=38349"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}