// HubSpot Form Creation
hbspt.forms.create({
portalId: "44245991", // Your HubSpot portal ID
formId: "e0ba8f01-d341-40be-b5a3-ed603142ba3f", // Your HubSpot form ID
target: "#hubspot-form",
onFormSubmit: function($form) {
// Log submission and open the modal with the PDF
console.log("Form submitted successfully!");
var pdfEmbed = document.getElementById('pdf-embed');
pdfEmbed.src = 'https://test.galent.com/wp-content/uploads/2025/02/Galent_Case-Study-Delottie-Old.pdf'; // Replace with your PDF URL
openModal(); // Show the modal with the PDF
}
});