CRM

RHeinze
Member

Form pop up after clicking an image

SOLVE

Hi, 

Hoping you could help me. I want a form to pop up when an image is clicked on a landing page. 

 

Any advice on how and if this is possible?

 

Thank you! 

0 Upvotes
1 Accepted solution
TomM2
Solution
Thought Leader | Platinum Partner
Thought Leader | Platinum Partner

Form pop up after clicking an image

SOLVE

Hey @RHeinze  you'll need a bit of html for this, but it's quite easily possible through code snippets in HubSpot CTAs

You just need to create a html anchor element (IE a link) around your image and then use the HubSpot CTA trigger class in this: 

TomM2_0-1729524533894.png

 

Then you HubSpot CTA should just be the pop-up form you want! 

Tom Mahon
Technical Consultant | Solutions Engineer | Community Champion
Baskey Digitial

Book a consultation

Did my post help answer your query? Help the community (and me) by marking it as a solution.


View solution in original post

0 Upvotes
6 Replies 6
TomM2
Solution
Thought Leader | Platinum Partner
Thought Leader | Platinum Partner

Form pop up after clicking an image

SOLVE

Hey @RHeinze  you'll need a bit of html for this, but it's quite easily possible through code snippets in HubSpot CTAs

You just need to create a html anchor element (IE a link) around your image and then use the HubSpot CTA trigger class in this: 

TomM2_0-1729524533894.png

 

Then you HubSpot CTA should just be the pop-up form you want! 

Tom Mahon
Technical Consultant | Solutions Engineer | Community Champion
Baskey Digitial

Book a consultation

Did my post help answer your query? Help the community (and me) by marking it as a solution.


0 Upvotes
RHeinze
Member

Form pop up after clicking an image

SOLVE

Thank you Tom, that makes sense to me. Where on the hubspot landing page do I put the code? Cheers 

0 Upvotes
TomM2
Thought Leader | Platinum Partner
Thought Leader | Platinum Partner

Form pop up after clicking an image

SOLVE

Hey @RHeinze you would need to create a custom module with this, or you can add it into a rich text editor under the "advanced" > "source code" option! 

Tom Mahon
Technical Consultant | Solutions Engineer | Community Champion
Baskey Digitial

Book a consultation

Did my post help answer your query? Help the community (and me) by marking it as a solution.


0 Upvotes
RHeinze
Member

Form pop up after clicking an image

SOLVE

 Thank you! I have gone ahead and done the code to link the image, however cant seem to work out how to code it so that the pop up appears? 

 
This is what I have so far, any tips?
 
<a href="hs-cta-trigger-button hs-cta-trigger-button-118248858310"> <img src="https://27247968.fs1.hubspotusercontent-eu1.net/hubfs/27247968/Screenshot%202024-10-21%20121823.png" alt="clickablevideo"> </a>
0 Upvotes
RHeinze
Member

Form pop up after clicking an image

SOLVE
Thank you! I have gone ahead and done the code to link the image, however cant seem to work out how to code it so that the pop up appears?

This is what I have so far, any tips?

clickablevideo
0 Upvotes
TomM2
Thought Leader | Platinum Partner
Thought Leader | Platinum Partner

Form pop up after clicking an image

SOLVE

Hey @RHeinze looks like you added your CTA trigger class as the link for the link item (in the href attribute). It should be added in as a class in your link. 

There's a bit more info on this within the Kb article here.

Tom Mahon
Technical Consultant | Solutions Engineer | Community Champion
Baskey Digitial

Book a consultation

Did my post help answer your query? Help the community (and me) by marking it as a solution.


0 Upvotes