Title: simonfunk's Replies | WordPress.org

---

# simonfunk

  [  ](https://wordpress.org/support/users/simonfunk/)

 *   [Profile](https://wordpress.org/support/users/simonfunk/)
 *   [Topics Started](https://wordpress.org/support/users/simonfunk/topics/)
 *   [Replies Created](https://wordpress.org/support/users/simonfunk/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/simonfunk/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/simonfunk/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/simonfunk/engagements/)
 *   [Favorites](https://wordpress.org/support/users/simonfunk/favorites/)

 Search replies:

## Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[HubSpot All-In-One Marketing - Forms, Popups, Live Chat] Update for Hubspot breaks programmatic form](https://wordpress.org/support/topic/update-for-hubspot-breaks-programmatic-form/)
 *  Thread Starter [simonfunk](https://wordpress.org/support/users/simonfunk/)
 * (@simonfunk)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/update-for-hubspot-breaks-programmatic-form/#post-13668695)
 * Great, thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[HubSpot All-In-One Marketing - Forms, Popups, Live Chat] Update for Hubspot breaks programmatic form](https://wordpress.org/support/topic/update-for-hubspot-breaks-programmatic-form/)
 *  Thread Starter [simonfunk](https://wordpress.org/support/users/simonfunk/)
 * (@simonfunk)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/update-for-hubspot-breaks-programmatic-form/#post-13652279)
 * Here is the solution:
    [https://wordpress.org/support/topic/new-update-for-hubspot-breaks-form/#post-13632819](https://wordpress.org/support/topic/new-update-for-hubspot-breaks-form/#post-13632819)
 * Can you please integrate it so it is save for update?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[HubSpot All-In-One Marketing - Forms, Popups, Live Chat] New update for Hubspot breaks form](https://wordpress.org/support/topic/new-update-for-hubspot-breaks-form/)
 *  [simonfunk](https://wordpress.org/support/users/simonfunk/)
 * (@simonfunk)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/new-update-for-hubspot-breaks-form/#post-13632819)
 * Same issue here.
 * This is my code which now doesn’t work anymore:
 *     ```
       const $ = window.jQuery,
           portalId = window.App ? window.App.hubspot_portal_id : false;
   
       export default function () {
           if (!portalId) {
               return;
           }
   
           $('.hubspot-form').each(function (index) {
               const $this = $(this),
                   id = 'hubspot-form-' + index;
               $(this).attr('id', id);
               hbspt.forms.create({
                   css: '',
                   target: '#' + id,
                   formId: $this.data('formId'),
                   portalId: portalId,
                   cssClass: 'hubspot-form',
               });
   
           });
       }
       ```
   

Viewing 3 replies - 1 through 3 (of 3 total)