GOGETMUSCLE Community ‘hs-form-event:on-ready’ firing twice

‘hs-form-event:on-ready’ firing twice

Hi there, I’m embedding a HS form into Webflow using the developer code embed option:

Which works perfectly, however when I add an eventlistener like this


window.addEventListener(‘hs-form-event:on-ready’, (event) => {
const { formId } = event.detail;
const timestamp = new Date().toISOString();
console.log(
`💡 Form ready event fired for Form ID: ${formId} at ${timestamp}`
);
});

I can see that in my Console tab, that it fired twice.

NRak_2-1760534449295.png


What could be causing this?
I want to inject some data dynamically into a hidden field and I’m not sure if this is a realiable way of checking that my form is loaded and ready.

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

Learn with HubSpot 変化の時代に求められる「即効性」実現の実践術Learn with HubSpot 変化の時代に求められる「即効性」実現の実践術

こんにちは。HubSpotにてイベントを担当しております松本です。   2025年7月8日(火)〜7月11日(金)毎日12:00から、下記テーマについてオンラインイベントを開催いたします。   =========== Learn with HubSpot 変化の時代に求められる「即効性」実現の実践術 開催日時:2025年7月8日(火)〜7月11日(金)毎日12:00から配信 =========== HubSpot & パートナー企業 全10社が登壇! 本イベントでは営業・マーケティング・カスタマーサービスの各領域で「いち早く成果につなげる」ための戦略や実践的な手法を、HubSpotと業界最前線で活躍するHubSpotパートナー企業9社が各社の強みや実績から独自の切り口で解説。最新のトレンドも取り入れながら、多面的な視点からビジネスの最適解を探ります。   今回はプレゼンテーション形式のセッションに加え、ワークショップ形式のセッションもご用意しています。気になるテーマのセッションにぜひご参加ください。   ▼ウェビナーへの詳細・お申し込みはこちらから▼