# \#javascript

**URL:** https://community.hubspot.com/tag/javascript/3631.md

[Latest](https://community.hubspot.com/latest.md) · [Categories](https://community.hubspot.com/categories.md) · [Tags](https://community.hubspot.com/tags.md)

---

## [Google Page Speed Insights Optimization](https://community.hubspot.com/t/google-page-speed-insights-optimization/95989)

<div class="topic-metadata">

**Author:** [@DEsteva](https://community.hubspot.com/u/DEsteva)\
**Replies:** 8\
**Last updated:** [October 30, 2026, 5:42am UTC](https://community.hubspot.com/t/google-page-speed-insights-optimization/95989 "2026-10-30T05:42:58Z")

</div>

Hello! I’m going throught an optimization following the recomendation from Google Speed Insights. Anyways, two of the recome…

---

## [Optimising website for core web vitals issues for mobile](https://community.hubspot.com/t/optimising-website-for-core-web-vitals-issues-for-mobile/93560)

<div class="topic-metadata">

**Author:** [@06Farooq](https://community.hubspot.com/u/06Farooq)\
**Replies:** 3\
**Last updated:** [September 2, 2026, 11:14am UTC](https://community.hubspot.com/t/optimising-website-for-core-web-vitals-issues-for-mobile/93560 "2026-09-02T11:14:02Z")

</div>

Hi, I have been trying to optimize https://www.clickmaint.com/ for mobile devices. The score for desktop is good in PageSpee…

---

## [Preloading dynamic image in template (react module)](https://community.hubspot.com/t/preloading-dynamic-image-in-template-react-module/138709)

<div class="topic-metadata">

**Author:** [@deFaraks](https://community.hubspot.com/u/deFaraks)\
**Replies:** 5\
**Last updated:** [August 25, 2026, 8:13am UTC](https://community.hubspot.com/t/preloading-dynamic-image-in-template-react-module/138709 "2026-08-25T08:13:08Z")

</div>

Hello, I have a React module and I want to improve its LCP (in this case, an image). I need to find a way to preload the imag…

---

## [HubSpot chat widget still appears after plugin removal and subscription cancellation](https://community.hubspot.com/t/hubspot-chat-widget-still-appears-after-plugin-removal-and-subscription-cancellation/154067)

<div class="topic-metadata">

**Author:** [@EspenVagstolo](https://community.hubspot.com/u/EspenVagstolo)\
**Replies:** 3\
**Last updated:** [July 24, 2026, 7:48pm UTC](https://community.hubspot.com/t/hubspot-chat-widget-still-appears-after-plugin-removal-and-subscription-cancellation/154067 "2026-07-24T19:48:07Z")

</div>

We used HubSpot for approximately six years and cancelled our subscription about a year ago. We have removed the HubSpot Wor…

---

## [HubSpot chatflow not appearing on live website](https://community.hubspot.com/t/hubspot-chatflow-not-appearing-on-live-website/154023)

<div class="topic-metadata">

**Author:** [@reflections](https://community.hubspot.com/u/reflections)\
**Replies:** 2\
**Last updated:** [July 24, 2026, 7:47pm UTC](https://community.hubspot.com/t/hubspot-chatflow-not-appearing-on-live-website/154023 "2026-07-24T19:47:41Z")

</div>

Hello, My active HubSpot chatflow is not appearing on my live website. Website: https://reflectionsmarketing.com Portal ID…

---

## [Hubspot Form Validation Trigger](https://community.hubspot.com/t/hubspot-form-validation-trigger/130672)

<div class="topic-metadata">

**Author:** [@Hutfuchs](https://community.hubspot.com/u/Hutfuchs)\
**Replies:** 10\
**Last updated:** [July 21, 2026, 8:31am UTC](https://community.hubspot.com/t/hubspot-form-validation-trigger/130672 "2026-07-21T08:31:08Z")

</div>

Hi Mates, I have an Hubspot Form as rendered module (no iframe) and want to trigger the hubspot-form-validation. (like the v…

---

## [Custom code workflow - NodeJS 20 deprecation?](https://community.hubspot.com/t/custom-code-workflow-nodejs-20-deprecation/151873)

<div class="topic-metadata">

**Author:** [@TomC86](https://community.hubspot.com/u/TomC86)\
**Replies:** 1\
**Last updated:** [July 2, 2026, 4:53pm UTC](https://community.hubspot.com/t/custom-code-workflow-nodejs-20-deprecation/151873 "2026-07-02T16:53:26Z")

</div>

Hi All, We’re using a few Custom Code Actions in our Hubspot workflows on NodeJS. Most are still on NodeJS 16. We had started upgrading these to NodeJS 20 but I think I’ve seen that v20 is being deprecated? Do we know w…

---

## [JS Partials in theme created with React (2026.3)](https://community.hubspot.com/t/js-partials-in-theme-created-with-react-2026-3/150638)

<div class="topic-metadata">

**Author:** [@tomaszklusak](https://community.hubspot.com/u/tomaszklusak)\
**Replies:** 2\
**Last updated:** [June 18, 2026, 5:27pm UTC](https://community.hubspot.com/t/js-partials-in-theme-created-with-react-2026-3/150638 "2026-06-18T17:27:27Z")

</div>

Hey, TLDR: does JS Partials work in CMS Theme created with React? Lately I’ve migrated my react modules from 2025.1 to 2026.3. I used the @hubspot/create-cms-theme package and structure. I have my partials inside /com…

---

## [Scope JavaScript to a specific module instance](https://community.hubspot.com/t/scope-javascript-to-a-specific-module-instance/149017)

<div class="topic-metadata">

**Author:** [@Woodsy](https://community.hubspot.com/u/Woodsy)\
**Replies:** 1\
**Last updated:** [May 5, 2026, 11:59am UTC](https://community.hubspot.com/t/scope-javascript-to-a-specific-module-instance/149017 "2026-05-05T11:59:12Z")

</div>

Hi, HubSpot’s HubL templating language has a special tag {% scope\_css %}…{% end\_scope\_css %} to scope CSS to a specific module instance. Is there a {% scope\_js %} or {% scope\_script %} for JavaScript. I’m looking to mak…

---

## [Font Awesome JS 403 HTTP Status Code](https://community.hubspot.com/t/font-awesome-js-403-http-status-code/147707)

<div class="topic-metadata">

**Author:** [@HBarden](https://community.hubspot.com/u/HBarden)\
**Replies:** 2\
**Last updated:** [March 26, 2026, 7:09pm UTC](https://community.hubspot.com/t/font-awesome-js-403-http-status-code/147707 "2026-03-26T19:09:17Z")

</div>

Hi, When auditing my website I have the following issue across most of my pages “1 links to external pages or resources returned a 403 HTTP status code” and it is Resource URL Type of resource Discovered https://k…

---

## [Unable to see drag and drop blog template in blog listing page edit settings](https://community.hubspot.com/t/unable-to-see-drag-and-drop-blog-template-in-blog-listing-page-edit-settings/145602)

<div class="topic-metadata">

**Author:** [@soorajvtrio](https://community.hubspot.com/u/soorajvtrio)\
**Replies:** 4\
**Last updated:** [January 30, 2026, 10:13pm UTC](https://community.hubspot.com/t/unable-to-see-drag-and-drop-blog-template-in-blog-listing-page-edit-settings/145602 "2026-01-30T22:13:06Z")

</div>

I have created a blog template using Clean 6 theme and attempted to change both the blog post and blog listing templates. However, when I try to change the blog listing template, the blog templates do not appear in the l…

---

## [PCI scan failing due to HubSpot site search cookies (\_pk\_ses)](https://community.hubspot.com/t/pci-scan-failing-due-to-hubspot-site-search-cookies-pk-ses/144990)

<div class="topic-metadata">

**Author:** [@ARogers\_CMPS](https://community.hubspot.com/u/ARogers_CMPS)\
**Replies:** 2\
**Last updated:** [January 19, 2026, 6:38pm UTC](https://community.hubspot.com/t/pci-scan-failing-due-to-hubspot-site-search-cookies-pk-ses/144990 "2026-01-19T18:38:03Z")

</div>

I’m running into a recurring PCI scan failure related to cookies set by HubSpot’s site search functionality and am looking for either a supported remediation path or official documentation I can reference for auditors. W…

---

## [Does developer portal exist in all accounts?](https://community.hubspot.com/t/does-developer-portal-exist-in-all-accounts/145073)

<div class="topic-metadata">

**Author:** [@JZhao](https://community.hubspot.com/u/JZhao)\
**Replies:** 2\
**Last updated:** [January 19, 2026, 8:26am UTC](https://community.hubspot.com/t/does-developer-portal-exist-in-all-accounts/145073 "2026-01-19T08:26:30Z")

</div>

Currently I have a developer account where I made all apps and integration with my backend services. That includes cards, webhook etc. Then I install the apps to different production customer portal accounts. So I assume…

---

## [What is the different for personal key and develop api key?](https://community.hubspot.com/t/what-is-the-different-for-personal-key-and-develop-api-key/145071)

<div class="topic-metadata">

**Author:** [@JZhao](https://community.hubspot.com/u/JZhao)\
**Replies:** 1\
**Last updated:** [January 19, 2026, 8:01am UTC](https://community.hubspot.com/t/what-is-the-different-for-personal-key-and-develop-api-key/145071 "2026-01-19T08:01:59Z")

</div>

hubspot development portal has two keys “Personal access key” and “Developer API Key”. What are the different in terms of integrating with Hubpost? When I run “hs init” to initialise a project, it asks me to provide “Pe…

---

## [Custom Redirect Script Caching Old URL (Page/CDN Issue?)](https://community.hubspot.com/t/custom-redirect-script-caching-old-url-page-cdn-issue/143544)

<div class="topic-metadata">

**Author:** [@DJohnson4](https://community.hubspot.com/u/DJohnson4)\
**Replies:** 3\
**Last updated:** [December 3, 2025, 8:23pm UTC](https://community.hubspot.com/t/custom-redirect-script-caching-old-url-page-cdn-issue/143544 "2025-12-03T20:23:37Z")

</div>

Hi, I am facing a persistent issue where a custom JavaScript redirect I’ve placed on a HubSpot page seems to be caching or serving an old version of the script, despite clearing my local cache, testing on multiple devic…

---

## [Clone deal across different pipelines using custom code](https://community.hubspot.com/t/clone-deal-across-different-pipelines-using-custom-code/56818)

<div class="topic-metadata">

**Author:** [@ChrisChiha](https://community.hubspot.com/u/ChrisChiha)\
**Replies:** 4\
**Last updated:** [November 27, 2025, 8:47am UTC](https://community.hubspot.com/t/clone-deal-across-different-pipelines-using-custom-code/56818 "2025-11-27T08:47:59Z")

</div>

Hello, I am looking to add a custom code in my workflow, that will clone a deal to another pipeline, and copy deal properties to the newly cloned deal. My use case is to clone the deal to a new pipeline and copy deal i…

---

## [HubSpot UI Extension | Serverless Function Fails to Find Local Module After Deployment in HubSpot UI](https://community.hubspot.com/t/hubspot-ui-extension-serverless-function-fails-to-find-local-module-after-deployment-in-hubspot-ui/116554)

<div class="topic-metadata">

**Author:** [@MAsghari](https://community.hubspot.com/u/MAsghari)\
**Replies:** 11\
**Last updated:** [October 20, 2025, 11:33pm UTC](https://community.hubspot.com/t/hubspot-ui-extension-serverless-function-fails-to-find-local-module-after-deployment-in-hubspot-ui/116554 "2025-10-20T23:33:07Z")

</div>

Hi There, I’m deploying a custom UI Extension in HubSpot that includes serverless functions. Locally, everything works fine, but once I deploy, I encounter the following error: { "status": "error", "message": "The se…

---

## [I need to have a country specific phone number validation.](https://community.hubspot.com/t/i-need-to-have-a-country-specific-phone-number-validation/129561)

<div class="topic-metadata">

**Author:** [@NMerai](https://community.hubspot.com/u/NMerai)\
**Replies:** 5\
**Last updated:** [September 24, 2025, 2:44pm UTC](https://community.hubspot.com/t/i-need-to-have-a-country-specific-phone-number-validation/129561 "2025-09-24T14:44:08Z")

</div>

So for example if I select country name in phone number field then if I enter phone number it should validate that specific country’s phone number format. For example, if I select India then it should allow 10 digits. …

---

## [Embedding Chatflow inline](https://community.hubspot.com/t/embedding-chatflow-inline/139948)

<div class="topic-metadata">

**Author:** [@DJohnson4](https://community.hubspot.com/u/DJohnson4)\
**Replies:** 2\
**Last updated:** [September 24, 2025, 1:36pm UTC](https://community.hubspot.com/t/embedding-chatflow-inline/139948 "2025-09-24T13:36:04Z")

</div>

Hi all, I am trying to embed my chatflow like how it is done on this page. here is my code: module.html \<div class="chat-container"\> \<div id="hubspot-chat" style="height: 500px; width: 100%;"\>\</div\> \</div\> module.cs…

---

## [Publishing Hubspot React Module](https://community.hubspot.com/t/publishing-hubspot-react-module/138485)

<div class="topic-metadata">

**Author:** [@Dhruvang-Dave](https://community.hubspot.com/u/Dhruvang-Dave)\
**Replies:** 3\
**Last updated:** [September 22, 2025, 1:59pm UTC](https://community.hubspot.com/t/publishing-hubspot-react-module/138485 "2025-09-22T13:59:13Z")

</div>

I am working on the Hubspot Module creation. I have completed the development. I have developed it by refereeing the docs. Now, I want to publish the Module on the Marketplace of the Hubspot. While processing it. I saw t…

---

## [Rebuilding Database Query Form in Hubspot](https://community.hubspot.com/t/rebuilding-database-query-form-in-hubspot/34211)

<div class="topic-metadata">

**Author:** [@DPicklo](https://community.hubspot.com/u/DPicklo)\
**Replies:** 3\
**Last updated:** [September 10, 2025, 5:53pm UTC](https://community.hubspot.com/t/rebuilding-database-query-form-in-hubspot/34211 "2025-09-10T17:53:57Z")

</div>

Howdy Developers! I’m looking to recreate the form on this page (Sales and Distributors | Amphenol Advanced Sensors) using HubL and HubDB instead of PHP like on the current version of this application. I’m a bit new to…

---

## [Can I Override HubL Theme Variables Based on a Cookie or Checkbox?](https://community.hubspot.com/t/can-i-override-hubl-theme-variables-based-on-a-cookie-or-checkbox/137532)

<div class="topic-metadata">

**Author:** [@BBecker1](https://community.hubspot.com/u/BBecker1)\
**Replies:** 5\
**Last updated:** [August 21, 2025, 12:29pm UTC](https://community.hubspot.com/t/can-i-override-hubl-theme-variables-based-on-a-cookie-or-checkbox/137532 "2025-08-21T12:29:25Z")

</div>

Hello. I’m working with a HubSpot theme where variables are set using HubL. For example, in the theme settings, there are color variables like Background, which are accessed in the templates like this: {% set backgroun…

---

## [Vulnerable jQuery Version Error on subdomain](https://community.hubspot.com/t/vulnerable-jquery-version-error-on-subdomain/137619)

<div class="topic-metadata">

**Author:** [@ISAnkur](https://community.hubspot.com/u/ISAnkur)\
**Replies:** 4\
**Last updated:** [August 12, 2025, 12:08pm UTC](https://community.hubspot.com/t/vulnerable-jquery-version-error-on-subdomain/137619 "2025-08-12T12:08:41Z")

</div>

Hi HubSpot Team, We’ve conducted a security scan on two assets hosted on our HubSpot tenant: name.xxx.com go.xxx.com The scan detected six alerts related to a vulnerable version of jQuery. Upon further analysis, we h…

---

## [HTML Entity Issue](https://community.hubspot.com/t/html-entity-issue/137077)

<div class="topic-metadata">

**Author:** [@BMaier](https://community.hubspot.com/u/BMaier)\
**Replies:** 7\
**Last updated:** [August 1, 2025, 2:39pm UTC](https://community.hubspot.com/t/html-entity-issue/137077 "2025-08-01T14:39:56Z")

</div>

I’m having an odd issue where I can’t get an HTML Entity(registered trademark symbol ®) to render correctly. We are using the cms-react templates to build this site. This particular field is using a TextField for the he…

---

## [How to Show CRM Object Property Values in a Module](https://community.hubspot.com/t/how-to-show-crm-object-property-values-in-a-module/137207)

<div class="topic-metadata">

**Author:** [@MUlHuq](https://community.hubspot.com/u/MUlHuq)\
**Replies:** 6\
**Last updated:** [August 1, 2025, 10:11am UTC](https://community.hubspot.com/t/how-to-show-crm-object-property-values-in-a-module/137207 "2025-08-01T10:11:46Z")

</div>

I have a custom object called Resorts. In a module, I did it like this: {% set query = “limit=”~10~“&offset=0” %} {% set crm\_data = crm\_objects(“resorts”, query, “hs\_object\_id, booked\_dates, resort\_name, description, …

---

## [Manipulate CRM Data using JS in Module](https://community.hubspot.com/t/manipulate-crm-data-using-js-in-module/137140)

<div class="topic-metadata">

**Author:** [@MUlHuq](https://community.hubspot.com/u/MUlHuq)\
**Replies:** 7\
**Last updated:** [July 31, 2025, 1:05pm UTC](https://community.hubspot.com/t/manipulate-crm-data-using-js-in-module/137140 "2025-07-31T13:05:56Z")

</div>

Hi everyone, I’ve been using HubSpot for a while now and recently encountered an issue while trying to import CRM object data in the frontend. Previously, I could fetch CRM object data like this: {{ % set crm\_data = cr…

---

## [Removing Auto-Generated Hreflangs While Keeping the Language Switcher](https://community.hubspot.com/t/removing-auto-generated-hreflangs-while-keeping-the-language-switcher/136484)

<div class="topic-metadata">

**Author:** [@TSygut4](https://community.hubspot.com/u/TSygut4)\
**Replies:** 2\
**Last updated:** [July 18, 2025, 10:29pm UTC](https://community.hubspot.com/t/removing-auto-generated-hreflangs-while-keeping-the-language-switcher/136484 "2025-07-18T22:29:41Z")

</div>

Hi! Is there any way to remove auto-generated Hreflangs while keeping the language switcher functionality? I have a request from the client to keep pages in the German language, but change hreflang from de to de-DE. It…

---

## [Setting form field values with javascript](https://community.hubspot.com/t/setting-form-field-values-with-javascript/76169)

<div class="topic-metadata">

**Author:** [@paradummy](https://community.hubspot.com/u/paradummy)\
**Replies:** 6\
**Last updated:** [July 17, 2025, 3:55pm UTC](https://community.hubspot.com/t/setting-form-field-values-with-javascript/76169 "2025-07-17T15:55:17Z")

</div>

Hi folks I’m trying to set the values for some form fields of a hubspot form with javascript. But the values gets deleted after validation (or in this case after input/change event). I remember that this used to work (a…

---

## [Types/Interfaces not accessible within extension?](https://community.hubspot.com/t/types-interfaces-not-accessible-within-extension/136281)

<div class="topic-metadata">

**Author:** [@MSundman](https://community.hubspot.com/u/MSundman)\
**Replies:** 2\
**Last updated:** [July 16, 2025, 5:17pm UTC](https://community.hubspot.com/t/types-interfaces-not-accessible-within-extension/136281 "2025-07-16T17:17:00Z")

</div>

So, we’re using the UI extensions with typescript. And noticing that no types or interfaces are accessible outside of the file they’re exported from. i.e. we have a file with an exported type (or interface) like this: \`…

---

## [How can I store per-portal configuration (text fields) and fetch it in my UI extension (CRM card)?](https://community.hubspot.com/t/how-can-i-store-per-portal-configuration-text-fields-and-fetch-it-in-my-ui-extension-crm-card/135937)

<div class="topic-metadata">

**Author:** [@MKatewa](https://community.hubspot.com/u/MKatewa)\
**Replies:** 4\
**Last updated:** [July 15, 2025, 8:50pm UTC](https://community.hubspot.com/t/how-can-i-store-per-portal-configuration-text-fields-and-fetch-it-in-my-ui-extension-crm-card/135937 "2025-07-15T20:50:18Z")

</div>

Hi HubSpot team and community, I’m building a public app that uses a CRM card built with the new UI Extensions framework, and I need help enabling configuration settings per connected account (HubSpot portal). What I w…

[Next page](https://community.hubspot.com/tag/javascript/3631.md?match_all_tags=true&page=1&tags%5B%5D=javascript)
