Lead Capture Tools

navroop
Contributor

CTA Form (beta) on button click Wordpress site

SOLVE

Hi,

 

We've successfully installed the Hubspot plugin for our wordperss site. We have multiple "Schedule a Demo" buttons on our site and wanted to leverage the new CTA (beta) to display a contact form on click.

 

We created the Form in HubSpot and then Created the CTA and have configured it to only be launched on click. We copied the code from the CTA that should be called on click and then put that into the Custom CSS for the button (at least we believe we did that correctly, per instructions). 

 

On click, the button does not bring up a popup. 

 

We have already disabled the popup form and dynamic action that would call the Gravity Forms button that were in place previously. 

 

Thoughts? 

0 Upvotes
1 Accepted solution
Mike_Eastwood
Solution
Recognized Expert | Gold Partner
Recognized Expert | Gold Partner

CTA Form (beta) on button click Wordpress site

SOLVE

Hi @navroop 

 

Do you have the HubSpot WordPress plugin installed in your site?

 

Can you share a link to your page so we can see what's happening?

 

Cheers

Mike

View solution in original post

9 Replies 9
colson
Participant

CTA Form (beta) on button click Wordpress site

SOLVE

Just wanted to say thanks for sharing. Solved this challenge for me, too!

0 Upvotes
Mike_Eastwood
Solution
Recognized Expert | Gold Partner
Recognized Expert | Gold Partner

CTA Form (beta) on button click Wordpress site

SOLVE

Hi @navroop 

 

Do you have the HubSpot WordPress plugin installed in your site?

 

Can you share a link to your page so we can see what's happening?

 

Cheers

Mike

DWebber
Member

CTA Form (beta) on button click Wordpress site

SOLVE

Hi. I have this exact same issue but I've done what @navroop did to get it to work and it's not worked for me. Do you have any ideas how I can proceed?

 

Here is the link to the page. One of the buttons I'm trying to link to a HubSpot CTA is the one below. It currently links to an Elementor popup, which then redirects to something when the form is filled in. I'm wanting it to rather link to the HubSpot CTA popup.

 

Screenshot 2024-06-05 at 14.41.55.png

 

Any help would really be appreciated.

 

Thanks!

0 Upvotes
navroop
Contributor

CTA Form (beta) on button click Wordpress site

SOLVE

Can you post the screenshots from your Wordpress setup? The parts I posted. Sometimes it's a minor issue there.

0 Upvotes
DWebber
Member

CTA Form (beta) on button click Wordpress site

SOLVE

Hi, thanks for the reply. 

 

It actually has worked! It seems it just took a while to make the connection with HubSpot, so when I made the change and immediately refreshed the page and tried, it wasn't working. I went back a while later and clicked on the button again and it's worked.

 

Thanks again.

0 Upvotes
navroop
Contributor

CTA Form (beta) on button click Wordpress site

SOLVE

We do have the plugin installed. Thanks for the speedy reply. I think we figured it out. There appear to be two distinct places where custom CSS calls can be placed for buttons, and while I would have thought it would work in both, it only works when called from one of them. 

 

Seems to be fine. We just did test submissions and all worked as expected. 

MaliniP
Participant

CTA Form (beta) on button click Wordpress site

SOLVE

Hi,

We seem to be facing the same issue. Could you help us with a bit more detail?
Much appreciated!

0 Upvotes
navroop
Contributor

CTA Form (beta) on button click Wordpress site

SOLVE

Hi Malini,

 

Here are screen shots from how we got it to work. 

 

Button on page:

Screenshot 2023-08-06 at 12.41.34 PM.png

 

Under edit button you want to be sure that you don't have a URL being called on click under "Link". See below. We set it to #!.

Screenshot 2023-08-06 at 12.41.55 PM.png

 

Next you want to put the css embed into the CSS Classes area under Layout on the Advanced Tab under Edit Button. This embed code is different per CTA.

 

Screenshot 2023-08-06 at 12.42.15 PM.png

 

This is not to be confused with the Custom CSS area further down the advanced tab on Edit Button. 

 

Screenshot 2023-08-06 at 12.45.51 PM.png

 

Hope this helps.

MaliniP
Participant

CTA Form (beta) on button click Wordpress site

SOLVE

Hi Navroop,

Thankyou so much!
That was very helpful indeed, especially setting # to Link. The path cleared from there on 🙂 

0 Upvotes