# Forms rendered by embed code are updating

**URL:** <https://community.hubspot.com/t/forms-rendered-by-embed-code-are-updating/61428>\
**Category:** Developer Announcements\
**Created:** [July 21, 2022, 1:26pm UTC](https://community.hubspot.com/t/forms-rendered-by-embed-code-are-updating/61428 "2022-07-21T13:26:13Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmclaren](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jmclaren/32/38449_2.png) [@jmclaren](https://community.hubspot.com/u/jmclaren)\
**Post date:** [July 21, 2022, 1:26pm UTC](https://community.hubspot.com/t/forms-rendered-by-embed-code-are-updating/61428/1 "2022-07-21T13:26:13Z")

</div>

As [announced on the Developer Changelog](https://developers.hubspot.com/changelog/forms-rendered-by-embed-code-are-updating):

Forms rendered by the HubSpot form embed codes are updating.Two changes will be occurring. Most accounts and forms should not expect to have any issues.

## What’s changing?

We’re updating our form embed to use a more recent version of React. The data-reach-id attribute that appears on DOM elements will be going away. Most developers do not target this ID with JavaScript or CSS and should not see an issue, but out of an abundance of empathy and transparency we are letting everyone know ahead of time.

Additionally our forms embed script will no longer attach internal dependencies to the `window.hubspot,` `window.hbspt, window.HSFR `properties. While these dependencies were required for the internal functionality of HubSpot forms, their attachment to a window property made them available for other scripts on the page. In the unlikely event your code relied on these dependencies, you will need to update any form related custom code to rely on their own dependencies.

**All documented methods of integrating with our embed will continue working**. To integrate with our forms embed, you can continue to use the documented APIs at [https://legacydocs.hubspot.com/docs/methods/forms/advanced\_form\_options](https://legacydocs.hubspot.com/docs/methods/forms/advanced_form_options)

> **[Accounts Dashboard | HubSpot](https://app.hubspot.com/myaccounts?next=developerdocs&redirect=%2Freference%2Fcms%2Fforms)**

These changes do not require someone to update the embed code snippet already used on their pages.

## When is this happening?

These changes will be going into effect on October 18th, 2022. If you are relying on the data-react-id or internal dependencies you will want to make your changes before then.

**Questions or comments?** post below.  
Edit 7/25/2022 - added clarification around the window.hbspt property.

---

<div class="post-metadata">

**Author:** ![CPMTTL88](https://avatars.discourse-cdn.com/v4/letter/c/71c47a/32.png) [@CPMTTL88](https://community.hubspot.com/u/CPMTTL88)\
**Post date:** [July 21, 2022, 4:48pm UTC](https://community.hubspot.com/t/forms-rendered-by-embed-code-are-updating/61428/2 "2022-07-21T16:48:31Z")

</div>

Hey jmlcaren,  
Just a quick question for you about this.  
Does this change also apply to the window.hbspt property? I’m relying on that dependency for some functionality.  
Thanks!

---

<div class="post-metadata">

**Author:** ![SKumar15](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@SKumar15](https://community.hubspot.com/u/SKumar15)\
**Post date:** [July 24, 2022, 1:19pm UTC](https://community.hubspot.com/t/forms-rendered-by-embed-code-are-updating/61428/3 "2022-07-24T13:19:27Z")

</div>

Same question, @hubspot Team?

---

<div class="post-metadata">

**Author:** ![jmclaren](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jmclaren/32/38449_2.png) [@jmclaren](https://community.hubspot.com/u/jmclaren)\
**Post date:** [July 26, 2022, 3:04pm UTC](https://community.hubspot.com/t/forms-rendered-by-embed-code-are-updating/61428/4 "2022-07-26T15:04:15Z")

</div>

**[Same answer as this question.](https://community.hubspot.com/t5/Developer-Announcements/Forms-rendered-by-embed-code-are-updating/m-p/670273/highlight/true#M311)**

---

<div class="post-metadata">

**Author:** ![jmclaren](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jmclaren/32/38449_2.png) [@jmclaren](https://community.hubspot.com/u/jmclaren)\
**Post date:** [July 25, 2022, 1:16pm UTC](https://community.hubspot.com/t/forms-rendered-by-embed-code-are-updating/61428/5 "2022-07-25T13:16:44Z")

</div>

@CPMTTL88, great question, we are deprecating that as well, except for the create function.  
I’ve updated the post and announcement in the changelog to make this more clear.

---

<div class="post-metadata">

**Author:** ![CDean](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cdean/32/76463_2.png) [@CDean](https://community.hubspot.com/u/CDean)\
**Post date:** [July 25, 2022, 5:41pm UTC](https://community.hubspot.com/t/forms-rendered-by-embed-code-are-updating/61428/6 "2022-07-25T17:41:55Z")

</div>

Can you confirm that this

`hbspt.forms.create`

function is completely untouched in the update?

[https://legacydocs.hubspot.com/docs/methods/forms/advanced\_form\_options](https://legacydocs.hubspot.com/docs/methods/forms/advanced_form_options)

---

<div class="post-metadata">

**Author:** ![jmclaren](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jmclaren/32/38449_2.png) [@jmclaren](https://community.hubspot.com/u/jmclaren)\
**Post date:** [July 26, 2022, 3:02pm UTC](https://community.hubspot.com/t/forms-rendered-by-embed-code-are-updating/61428/7 "2022-07-26T15:02:06Z")

</div>

Correct, create is not affected.

> * * *
> 
> @CDean wrote:
> 
> Can you confirm that this
> 
> `hbspt.forms.create`
> 
> function is completely untouched in the update?
> 
> [https://legacydocs.hubspot.com/docs/methods/forms/advanced\_form\_options](https://legacydocs.hubspot.com/docs/methods/forms/advanced_form_options)
> 
> * * *

---

<div class="post-metadata">

**Author:** ![SKumar15](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@SKumar15](https://community.hubspot.com/u/SKumar15)\
**Post date:** [July 26, 2022, 2:54pm UTC](https://community.hubspot.com/t/forms-rendered-by-embed-code-are-updating/61428/8 "2022-07-26T14:54:53Z")

</div>

Hi @jmclaren , The “HSFR” property is being deprecated too?

---

<div class="post-metadata">

**Author:** ![jmclaren](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jmclaren/32/38449_2.png) [@jmclaren](https://community.hubspot.com/u/jmclaren)\
**Post date:** [July 26, 2022, 3:24pm UTC](https://community.hubspot.com/t/forms-rendered-by-embed-code-are-updating/61428/9 "2022-07-26T15:24:04Z")

</div>

I replied over Slack, but for anyone else who comes to this thread I want them to find the answer too.  
We are indeed deprecating `window.HSFR` as well. HSFR was not documented, and not intended for developers to modify/rely on.

---

<div class="post-metadata">

**Author:** ![Denis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/denis/32/63664_2.png) [@Denis](https://community.hubspot.com/u/Denis)\
**Post date:** [October 7, 2022, 6:38pm UTC](https://community.hubspot.com/t/forms-rendered-by-embed-code-are-updating/61428/10 "2022-10-07T18:38:34Z")

</div>

@jmclarenis there a way to test our forms with the new script before the official release? We have pretty extensible customizations.

---

<div class="post-metadata">

**Author:** ![jmclaren](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jmclaren/32/38449_2.png) [@jmclaren](https://community.hubspot.com/u/jmclaren)\
**Post date:** [October 9, 2022, 3:10pm UTC](https://community.hubspot.com/t/forms-rendered-by-embed-code-are-updating/61428/11 "2022-10-09T15:10:31Z")

</div>

There isn’t a way to test right now. The jist though is, if you followed what’s in the documentation, you’re fine. You’re basically just affected if you specifically wrote custom code that relied on data-react-id, or wrote custom code relying on undocumented window object data. The vast majority of developers would not rely on the window object data, as it was undocumented, and you needed to know that data was there.
