Skip to main content

Contact Us

Description

CTA Button which opens a modal containing a form.

Form is a script provided by a third-party service "HubSpot".

Same form is used for all communities, with some custom parameters to be filled:

  • Community Name
  • Community ID (6-digit BDX ID)
  • Division Name
  • Brand Name
  • Community Page Link

Example

Form code:

<!-- jQuery -->
<script src="/js/jquery-3.6.1.min.js"></script>
<script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/embed/v2.js"></script>

<script>
// Registration Form
function hsClientFormInject(options) {
// Pushing Data to Hubspot Form
hbspt.forms.create({
region: "na1",
portalId: "5722395",
formId: "42bcc0d9-fcc3-4619-9384-2da057aa1b04",
target: '.hsRegistrationForm',
onFormSubmit: function ($form) {
var $data = $("#communityDataHidden");
$("input[name='bdx_buildername']").val(options.BrandName).change();
$("input[name='bdx_divisionname']").val(options.DivisionName).change();
$("input[name='community_url']").val(options.CommunityWebsite).change();
$("input[name='communityid']").val(options.CommunityID).change();

$("input[name='brandname']").val(options.BrandName).prop('checked', true).change();
}
});
}

</script>