You are here

hubspot-form.html.twig in Hubspot forms 8

Hubspot embed form.

File

templates/hubspot-form.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Hubspot embed form.
  5. */
  6. #}
  7. <!--[if lte IE 8]>
  8. <script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2-legacy.js"></script>
  9. <![endif]-->
  10. <script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2.js"></script>
  11. <div id='{{ target }}'></div>
  12. <script>
  13. hbspt.forms.create({
  14. css: '',
  15. target: '#{{ target }}',
  16. portalId: '{{ portal_id }}',
  17. formId: '{{ form_id }}'
  18. });
  19. </script>