Using that link, you'd have to navigate to any of the product pages, and then click on a product -> hit the "request more info" button and the form in question will pop up in a modal.
I have a simple script running to pick up elements found on the page and insert them into hidden fields on the form. This portion seems to be working just fine.
The problem is that it is not submitting.
I'm hoping someone will be able to confirm for me that it's a simple issue of it being on a preview page. I unfortunately don't have access to the page itself to do any testing of my own (nor do I have shopify knowledge, so it's probably for the best).
Does anyone have knowledge of how the shopify preview works? Or previews in general? I know form submissions form a preview in HS won't go through, not sure if this applies in all scenarios though. I'm not seeing any errors in the console to help carve a path forward.
I'd really appreciate any help that can be provided. Edits: shopify* not spotify
You'll want to put that script inside of the hubspot form embed code. See customizing the form embed code for more info. Look at the onFormSubmit and onFormReady callbacks.
I like kudos almost as much as cake – a close second.
@John - thanks for the response. Would you mind helping me take this to the finish line by providing some insight on how to include that script within the embed code?
I've been trying the below, but this doesn't seem sufficient:
Edit: it seems this is because it requires jquery. I was told by a couple other sources that JS would work just as well. My knowledge of jquery is along the lines of null.