First, in another post, this link was provided: https://www.crannog.scot/crannog-chronicles/using-hubspot-on-wix. The information looks relevant, but I can not yet follow the instructions as it requires a paid for edition of Wix.
Second. I did get the HubSpot Embed Code to work.
On your wix Page
1. Copy your Embed Code from Hubspot
It will look like this
<script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/shell.js"></script>
<script>
hbspt.forms.create({
portalId: "nnnnn",
formId: "nnnnnnnnnnnnnnnnn"
});
</script>
Where ‘nnnnn’ are your codes.
Then on your Wix Page
2. Add > More > HTML iFrame
3. Edit the Code
4. Paste the HubSpot Embed Code you copied in step 1.
5. Then Paste this code into the same box, above what you just pasted.
<html>
<body>
<main style="heigt:100%">[ .... moved you embed code here .... ]
</main>
</body>
</html>
6. And then Cut and Paste the Embed Code (below) into where it says
[ .... moved you embed code here .... ]
So you end up with code that looks like this.
<html>
<body>
<main style="heigt:100%">
<script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/shell.js"></script>
<script>
hbspt.forms.create({
portalId: "nnnnnn",
formId: "nnnnnnnnnnnnnnnnnnnnnnnnnnn"
});
</script>
</main>
</body>
</html>
Note, you can not (or I could not) get the HubSpot form to redirect to another page. You can only use the option to ‘Display a thank you message’.
POSTSCRIPT
I have not tested this in anger. If you do please reply.