# Trigger Popup CTA from JS

**URL:** <https://community.hubspot.com/t/trigger-popup-cta-from-js/98203>\
**Category:** CMS Development\
**Tags:** javascript\
**Created:** [January 19, 2024, 11:40am UTC](https://community.hubspot.com/t/trigger-popup-cta-from-js/98203 "2024-01-19T11:40:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LucianoTolomei](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lucianotolomei/32/47260_2.png) [@LucianoTolomei](https://community.hubspot.com/u/LucianoTolomei)\
**Post date:** [January 19, 2024, 11:40am UTC](https://community.hubspot.com/t/trigger-popup-cta-from-js/98203/1 "2024-01-19T11:40:06Z")

</div>

We need to trigger different popup based on page data layer.

It’s seem is not possibile.

There is some workaround for this?

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [January 19, 2024, 9:50pm UTC](https://community.hubspot.com/t/trigger-popup-cta-from-js/98203/2 "2024-01-19T21:50:47Z")

</div>

Hey, @LucianoTolomei 👋 Thanks for your question! While I don’t have a workaround to offer, I do have some questions that may give our community members more context. More information is never a bad thing when discussing product challenges 😊

- Can you provide more details about the popups you’re using? Are these HubSpot-built popups or custom-made popups?
- Could you elaborate on the structure of the data layer you’re referencing?
- What are the specific conditions or criteria in the data layer that should trigger each different popup?

Thank you for the additional information! — Jaycee

---

<div class="post-metadata">

**Author:** ![LucianoTolomei](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lucianotolomei/32/47260_2.png) [@LucianoTolomei](https://community.hubspot.com/u/LucianoTolomei)\
**Post date:** [January 22, 2024, 8:02am UTC](https://community.hubspot.com/t/trigger-popup-cta-from-js/98203/3 "2024-01-22T08:02:21Z")

</div>

We use HubSpot CTA tool.

We have more than 30 news portal with hundreds of thousands of articles and we have more than 400 CTAs.  
Each article is tagged based on the topic and stage of the buyer journey. The data is stored in the pages data layer.  
So we need to use custom variables and the ability to make a custom trigger to show the right popup to the right people.
