GOGETMUSCLE Community Forbidden Error

Forbidden Error

When I using form.create method, The form is loaded but my custom JS code is not working as expected. I can only see 403 forbidden error in my console.

The code assiciated with functions are not triggering .

hbspt.forms.create({
  region: “na1”,              
  portalId: “123456”,        
  formId: “abcdef-1234…”,  
  target: “#form-container”,  

  // Events
  onFormReady: function($form) {
    alert(‘Form is ready’);
  },
  onFormSubmit: function($form) {
    alert(‘Form is ready to submit’);
  },
  onFormSubmitted: function($form) {
    alert(‘Form is submitted’);
  }
});

Leave a Reply

Your email address will not be published.

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社が各社の強みや実績から独自の切り口で解説。最新のトレンドも取り入れながら、多面的な視点からビジネスの最適解を探ります。   今回はプレゼンテーション形式のセッションに加え、ワークショップ形式のセッションもご用意しています。気になるテーマのセッションにぜひご参加ください。   ▼ウェビナーへの詳細・お申し込みはこちらから▼