# t.getElementsByTagName is not a function from https://js.hscollectedforms.net/collectedforms.js

**URL:** <https://community.hubspot.com/t/t-getelementsbytagname-is-not-a-function-from-https-js-hscollectedforms-net-collectedforms-js/47809>\
**Category:** APIs & Integrations\
**Tags:** forms\
**Created:** [December 1, 2021, 5:37pm UTC](https://community.hubspot.com/t/t-getelementsbytagname-is-not-a-function-from-https-js-hscollectedforms-net-collectedforms-js/47809 "2021-12-01T17:37:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![SFortierGalar](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sfortiergalar/32/192171_2.png) [@SFortierGalar](https://community.hubspot.com/u/SFortierGalar)\
**Post date:** [December 1, 2021, 5:37pm UTC](https://community.hubspot.com/t/t-getelementsbytagname-is-not-a-function-from-https-js-hscollectedforms-net-collectedforms-js/47809/1 "2021-12-01T17:37:14Z")

</div>

Every form change is causing a “t.getElementsByTagName is not a function” error from the

script at [https://](https://js.hscollectedforms.net/collectedforms.js)[js.hscollectedforms.net](https://js.hscollectedforms.net/collectedforms.js)[/collectedforms.js](https://js.hscollectedforms.net/collectedforms.js).

Browser vendor / version does not appear to make any change to this behavior.

We are seeing hundreds of these since this morning.

---

<div class="post-metadata">

**Author:** ![BAmadori](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/bamadori/32/18373_2.png) [@BAmadori](https://community.hubspot.com/u/BAmadori)\
**Post date:** [December 1, 2021, 5:45pm UTC](https://community.hubspot.com/t/t-getelementsbytagname-is-not-a-function-from-https-js-hscollectedforms-net-collectedforms-js/47809/2 "2021-12-01T17:45:29Z")

</div>

Yep, the exact problem I have since this morning.  
I was about to post this then I saw your post. This triggers randomly for us, in all pages. I.E.: when clicking on the dropdown menu.

---

<div class="post-metadata">

**Author:** ![DConnolly2](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dconnolly2/32/38114_2.png) [@DConnolly2](https://community.hubspot.com/u/DConnolly2)\
**Post date:** [December 1, 2021, 5:59pm UTC](https://community.hubspot.com/t/t-getelementsbytagname-is-not-a-function-from-https-js-hscollectedforms-net-collectedforms-js/47809/3 "2021-12-01T17:59:11Z")

</div>

Same issue on our end, React-DND seems to be causing this error when we drag and drop objects in our app.

---

<div class="post-metadata">

**Author:** ![CValant](https://avatars.discourse-cdn.com/v4/letter/c/46a35a/32.png) [@CValant](https://community.hubspot.com/u/CValant)\
**Post date:** [December 1, 2021, 6:21pm UTC](https://community.hubspot.com/t/t-getelementsbytagname-is-not-a-function-from-https-js-hscollectedforms-net-collectedforms-js/47809/4 "2021-12-01T18:21:03Z")

</div>

HS support said a fix was pushed minutes ago!

---

<div class="post-metadata">

**Author:** ![BAmadori](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/bamadori/32/18373_2.png) [@BAmadori](https://community.hubspot.com/u/BAmadori)\
**Post date:** [December 1, 2021, 7:45pm UTC](https://community.hubspot.com/t/t-getelementsbytagname-is-not-a-function-from-https-js-hscollectedforms-net-collectedforms-js/47809/5 "2021-12-01T19:45:41Z")

</div>

Seems like this is working correctly right now. That was fast.

---

<div class="post-metadata">

**Author:** ![robk](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/robk/32/35608_2.png) [@robk](https://community.hubspot.com/u/robk)\
**Post date:** [December 2, 2021, 3:15pm UTC](https://community.hubspot.com/t/t-getelementsbytagname-is-not-a-function-from-https-js-hscollectedforms-net-collectedforms-js/47809/6 "2021-12-02T15:15:30Z")

</div>

Also had an issue with React drag and drop, happy it is quickly fixed!
