Popup HubSpot form on CTA click

Hi @tjoyce thanks for that!

However, I don’t know what I’m doing wrong, but it’s not working.
I pasted the right button - the one that you sent above. And I pasted the second block of text on the head section on the page advanced settings, but it’s not working…

Do you know what I’m doing wrong?
Thanks, Lorenna

@lorennaeunapio - jump in my slack, I can help you there

Drop by and say Hi to me on slack.

Hey @tjoyce , I’ve created the form in Blecj.io, and now want to connect it to a CTA on my HubSpot LP (click on CTA → Form opens).

I already added the first embed code to the Advanced HTM section of the HS page.

But now when I add the second embed code to a rich text area, I just get a hyperlinked text - how can I style it so it’s a nice CTA instead of a text?

Hi @VeronikaT, you can design the link as a CTA by using CSS. Just add a border around the link text and give it some padding.

e.g. border: solid 2px #555; padding: 15px 40px;

@VeronikaT - Can you please link me to the page your form is on?

@tjoyce , sure: https://info.getciara.com/-temporary-slug-9c532bbd-3bf9-462e-bdc9-80814829a87f?hs_preview=ohalXKya-43826922421

The CTA “Download now for free” in the header is what I originally wanted to link to the pop-up form, so ideally, I style the text, so it looks like that button.

Thanks @VeronikaT - Can you please add this CSS to your site? Then put the text link wherever you need it to go and the styles should be picked up by the CSS.

<style>
a[data-micromodal-open] {
 -webkit-font-smoothing: antialiased;
 cursor: pointer;
 -moz-user-select: none;
 -webkit-user-select: none;
 -o-user-select: none;
 user-select: none;
 display: inline-block;
 font-weight: normal;
 text-align: center;
 text-decoration: none;
 -moz-transition: all .4s ease;
 -webkit-transition: all .4s ease;
 -o-transition: all .4s ease;
 background: rgb(0,207,255);
 border-radius: 6px;
 border-width: 0px;
 color: rgb(255,255,255);
 font-family: sans-serif;
 height: auto;
 transition: all .4s ease;
 padding: 6px 18px;
 text-shadow: none;
 width: auto;
 font-size: 24px;
 line-height: 1.5em;
 width: auto;
 min-height: 30px;
 padding: 16px 40px;
 margin-top: 40px;
 align-self: auto;
 border-radius: 4px;
 background-color: #00cfff;
 font-family: 'Linotype avenirnextltpro demi', sans-serif bold;
 color: #fff;
 font-size: 18px;
 text-align: center;
 cursor: pointer;
 font-weight: bold;
}
</style>

Thanks so much @tjoyce , worked!! :hugs:

@tjoyce I guess I’m doing something wrong. Our web page is on HubSpot. When I copy the code and go to settings to insert the code to the site header, it says that there is an error and can’t save the HTML. Any recommendations?

@Saper If you use HubSpots design tools - I paste the code into a custom html module and insert it to the template’s header section :slightly_smiling_face:

Great! Thank you very much @tette_engage !

@tjoyce When I add the button code to my page the only thing that shows is the text. The form loads fine when I click the text but there is no button. Did I miss something or could you help me troubleshoot? Here is my test page: https://www.swoovy.com/offer-download

Hi @MScheid13 - Can you please add this css to your page?

*['data-micromodal-open']{
display: inline-block;
 width: auto;
 height: auto;
 padding: 1em 2.5em;
 color: #fff;
 background-color: #272727;
 border-width: 0;
 font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
 font-size: 12px;
 line-height: 1em;
 font-weight: normal;
 font-style: normal;
 text-transform: uppercase;
 letter-spacing: 0px;
 text-align: center;
 text-decoration: none;
 cursor: pointer;
 -webkit-appearance: none;
 -moz-appearance: none;
 appearance: none;
 line-height: normal;
 padding: 21px 34px;
 font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
 font-size: 15px;
 font-weight: 600;
 letter-spacing: 1px;
 font-family: din-2014;
 font-size: 18px;
 font-weight: 300;
 font-style: normal;
 text-transform: uppercase;
 letter-spacing: .15em;
 color: #fff;
 background-color: #0b4065;
 border-color: #0b4065;
 border-radius: 99em;
}

Unfortunately, that didn’t seem to help unless I made a mistake when adding it. https://www.swoovy.com/offer-download#

Are you able to see something that I missed?

I was able to use your reply to @VeronikaT - to make it work on my page. Tks!!

I only see one code block for the pop-up form. There isn’t a second code block for the button which triggers the popup. So it isn’t as helpful as I’d hoped

You must be at forms.belch.io instead of startups.belch.io @Christo

Looking to trigger a pop-up after submission of another form. I know I can have HS run a script after a form is submitted, so do you know if a pop-up form could be triggered via script?

This would be very clean and an easy way to trigger a pop-up form.

Hey @tjoyce ,
Great functionality.

Unfortunately, it didn’t work for me.
See, I am trying to add a pop-up form to my LP and I was pasting the code on the Footer (advanced settings) and the Href on the button custom link and I am getting a 404 Error.

Any chance you’d know how to actually make it work?

Thank you,

Sal

Hey Tim,

I am having a hard time downloading your app to Hubspot. HS support said the har file might be the issue? Could you help?

Kind Regards,

Casey