harthur90
Forum Replies Created
-
hi @zacharyjrich Could you share what is thecustom code you are executing on your popup ? Which page builder are you using?
Best regards
Hi @cedriccharles,
Do you have a custom logic to use
this script
https://js.hsforms.net/forms/v2.js
instead of
https://js.hsforms.net/forms/embed/v2.jsThe first script is being deprecated
Best regards
Hi @zacharyjrich , Thanks for your message
Could you point me to the page where this is happening?
Best Regards
Hi,
onFormSubmit is not supported for what you are trying to achieve, Here is how I got it working
// This is an example - please update accordingly window.addEventListener("message", event => { if (event.data.type === "hsFormCallback"){ switch(event.data.eventName){ case "onFormReady": case "onFormFailedValidation": // If using Iframes var form = event.target.document.querySelector("#hs-form-iframe-0").contentDocument.querySelector('#hsForm_${event.data.id}'); // If using raw html var form = event.target.document .querySelector('#hsForm_${event.data.id}'); // hidden field var input = form.querySelector("input[name='submission_date']"); input.value = "06/28/2022"; break; default: break; }Best regards
yes, that is correct.
Best Regards,
The new script offers a better and more reliable way to render forms.
Let me know if this answer your question.
Best regards
Hi @starepod , Thanks for your message!
We recently changed to a new form script, so you will need to update your code to the following
<script> window.addEventListener('message', event => { if (event.data.type === 'hsFormCallback' && event.data.eventName === 'onFormSubmitted') { // This is an example, please update accordingly var form = event.target.document.querySelector("#hs-form-iframe-0").contentDocument.querySelector('#hsForm_${event.data.id}'); if(form.classList.contains('fl-insight-secondary')){ } }}); </script>Let me know if this helps
Best regards,
Hi @visionisto
It’s been a while since we last heard from you. I’ll close this thread for now, feel free to open it again if needed.
Best regards
Hi @rianmurnen Thanks for your feedback!
At HubSpot our build pipeline increase the plugin patch version for packages updates. All code changes that are effective at the plugin are described at the changelog.
Best regards and have a nice week
Hi @visionisto , thanks for your message
Could you send me the URL where you are seeing this error?
Best regards
Hi @mstudioil
It’s been a while since we last heard from you. I’ll close this thread for now, feel free to open it again if needed.
Best regards
Fix added to version 8.15.36
Thanks 🙂
Hi @zeko5851, I am sorry to hear that the plugin did not meet your expectations
As a free tool, we are constantly refining to see which features our users would like to see here. HubSpot offer a huge set of features, with multiple teams and products, but unfortunately not all are available to WordPress.
At this moment you can create a list by filtering by the form origin. In your example would be setting the form without specifying the page location.
Best regards
Hi @damnsharp , Thanks for your message
We will push a patch for this extra validation, but I’ve validate that there is no harm for the site
Thanks for spotting this. I’ll let you know once its fixed
Best regards
Hi @zeko5851 , Thanks for your message.
Currently the page location filter only work for pages created inside HubSpot CMS.
I’ll evaluate this as a new requested feature, but for now there is no workaround.
Best Regards