I'm not exactly sure how the plug-in renders javascript for trying to insert the form embed code in the form section of your page, however on your end if you're using the Elementor editor, paste the code into a shortcode element on your page, such as a Elementor Shortcode Widget.
As Elementor isn't a native app supported by HubSpot, I'd suggest reaching out to the Elementor Support team.
Also, I'd suggest checking this article where explains the form requirements here for a form to sync to HubSpot.
I hope this helps
Thanks
Sharon
Did you know that the Community is available in other languages? Join regional conversations by changing your language settings !
How to use hubspot form in WordPress elementor plugin
I've not used the elementor plugin, but most wordpress setups have html widgets, or you can just switch the regular content module to text view, rather than visual, so you can see the code and paste it there.
How to use hubspot form in WordPress elementor plugin
On some wordpress sites I've had to install the classic editor for various issues after an update. Maybe you could try that. Also, make sure that when you paste it in, there are no extra returns or spaces that wordpress might be adding. It has to be exactly as it is given from hubspot.
How to use hubspot form in WordPress elementor plugin
Your code looks like the "embed code" out of Hubspot. Mine was the "shortcode", generated from the Hubspot Plugin in Wordpress.
I tried out both and pasted them in shortcode, html, and text widget.
But it worked well with the embed code in the shortcode widget. Then there were various updates and now I noticed that the Hubspot forms are no longer displayed.
Maybe we have different plugin versions. Mine are: Elementor (not Pro): 2.9.12 Hubspot: 7.34.4 Theme OceanWP: 1.8.3 WordPress: 5.4.2