Hey, fellow developers!
I’m experiencing an issue that’s making me want to pull my hair out, and I’m wondering if anyone can help haha
I recently had my account added to the “Pop-Up CTAs” beta and have been playing around with creating a module for my blogs with a button that triggers a Pop-Up Form users can put their email into and then receive access to a PDF version of the blog post. Ultimately, I’m really trying to create a feature that allows me to manually select the PDF being linked after that form is submitted, but I’m having trouble.
My fear is that since this new feature from HubSpot uses an iframe, I’m not going to be able to manipulate the Pop-Up CTA using code, but I still wanted to ask if someone can help me. Here’s the code I’m currently using:
HTML + HubL –
<div class=“engagement-group”>
<div class=“engagement-group-btns”>
<div class=“send-group”>
<a href=“mailto:?subject=Check out this insight from Ichor&body={{ content.absolute_url }}” onclick=“window.open(‘mailto:?subject=Check out this insight from Ichor&body={{ content.absolute_url }})’” class=“icon-ichor-email-icon” role=“button” data-label=“Send” aria-expanded=“false”></a>
</div>
<div class=“share-group”>
<a href=“LinkedIn Login, Sign in | LinkedIn{{ content.absolute_url }}” onclick=“window.open(‘LinkedIn Login, Sign in | LinkedIn{{ content.absolute_url }})’” class=“icon-ichor-linkedin-icon” role=“button” data-label=“Share” aria-expanded=“false”></a>
</div>
<div class=“download-group”>
<a data-click-track=“true” rel=“nofollow” class=“icon-ichor-dwnld-icon icon-with-text download-article " role=“button” href=”{{ module.download_trigger }}" data-label=“Download”></a>
</div>
</div>
</div>
<script>
function Open() {
window.open(“{{ module.form_pdf_link }}”, “_blank”);
}
</script>
CSS –
@font-face {
font-family: ‘ichor-icons’;
src: url(‘https://www.ichorstrategies.com/hubfs/Ichor_Strategies_September2022/fonts/Ichor%20Icons/ichor-icons.eot’) format(‘eot’),
url(‘https://www.ichorstrategies.com/hubfs/Ichor_Strategies_September2022/fonts/Ichor%20Icons/ichor-icons.woff’) format(‘woff’),
url(‘https://www.ichorstrategies.com/hubfs/Ichor_Strategies_September2022/fonts/Ichor%20Icons/ichor-icons.ttf’) format(‘truetype’);
font-weight: normal;
font-style: normal;
}
.engagement-group {
width: auto;
}
.engagement-group-btns {
flex-wrap: nowrap;
font-family: roobert-light;
display: flex;
-webkit-box-pack: start;
justify-content: flex-start;
}
.engagement-group-btns a {
margin-top: 0 !important;
}
[class^=“icon-”]:before, [class*=“icon-”]:before {
font-family: ‘ichor-icons’;
font-weight: normal;
font-style: normal;
speak: never;
font-weight: normal;
font-style: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
display: inline-block;
text-decoration: inherit;
width: 1em;
text-align: center;
}
.send-group {
display: flex;
vertical-align: middle;
background-color: #e8eceb;
border-radius: 50%;
padding: 8px;
margin: 0px 3px 0px 3px;
transition: box-shadow .1s;
}
.send-group:hover {
background-color: #1e2d39;
box-shadow: 0 0 13px rgba(33,33,33,.4);
}
.send-group>a {
position: relative;
}
a.icon-ichor-email-icon::before {
content: ‘\e801’;
font-size: 30px;
margin-bottom: -10px;
padding: 2px 5px 2px 5px;
}
a.icon-ichor-email-icon:after {
font-size: .75rem;
line-height: 1rem;
content: attr(data-label);
}
.icon-ichor-email-icon {
display: -webkit-inline-box;
display: -ms-inline-flexbox;
display: inline-flex;
color: #1e2d39;
-webkit-box-align: center;
align-items: center;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
justify-content: center;
flex-direction: column;
height: 55px;
width: 55px;
text-decoration: none;
}
.icon-ichor-email-icon:hover {
color: #d9ff00;
}
.share-group {
display: flex;
vertical-align: middle;
background-color: #e8eceb;
border-radius: 50%;
padding: 8px;
margin: 0px 3px 0px 3px;
}
.share-group:hover {
background-color: #1e2d39;
box-shadow: 0 0 13px rgba(33,33,33,.4);
}
.share-group>a {
position: relative;
}
a.icon-ichor-linkedin-icon::before {
content: ‘\e802’;
font-size: 25px;
margin-bottom: -2.5px;
padding: 2px 5px 2px 1px;
}
a.icon-ichor-linkedin-icon:after {
font-size: .75rem;
line-height: 1rem;
content: attr(data-label);
}
.icon-ichor-linkedin-icon {
display: -webkit-inline-box;
display: -ms-inline-flexbox;
display: inline-flex;
color: #1e2d39;
-webkit-box-align: center;
align-items: center;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
justify-content: center;
flex-direction: column;
height: 55px;
width: 55px;
text-decoration: none;
}
.icon-ichor-linkedin-icon:hover {
color: #d9ff00;
}
.download-group {
display: flex;
vertical-align: middle;
background-color: #e8eceb;
border-radius: 50%;
padding: 8px;
margin: 0px 3px 0px 3px;
}
.download-group:hover {
background-color: #1e2d39;
box-shadow: 0 0 13px rgba(33,33,33,.4);
}
.download-group>a {
position: relative;
}
a.icon-ichor-dwnld-icon::before {
content: ‘\e800’;
font-size: 30px;
margin-bottom: -7.5px;
padding: 2px 5px 2px 5px;
}
a.icon-ichor-dwnld-icon:after {
font-size: .75rem;
line-height: 1rem;
content: attr(data-label);
}
.icon-ichor-dwnld-icon {
display: -webkit-inline-box;
display: -ms-inline-flexbox;
display: inline-flex;
color: #1e2d39;
-webkit-box-align: center;
align-items: center;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
justify-content: center;
flex-direction: column;
height: 55px;
width: 55px;
text-decoration: none;
}
.icon-ichor-dwnld-icon:hover {
color: #d9ff00;
}
.hs-overlay-cta-105981829032 {
width: 400px;
height: 300px;
}
.hs_cos_wrapper_dnd_area-module-2_ > h2 > span {
font-family: roobert-bold !important;
}
Here are some screenshots of what I’m currently seeing:
When someone clicks the “Download” button, the Pop-up CTA is triggered like so:
I’ve currently got it setup where after submission, a thank you message is displayed:
When this appears, I would love to trigger whatever file is predetermined in the “Form PDF Link” field on the lefthand side. PLEASE SOMEONE HELP!!!


