CMS Development

lstepany
Contributor | Elite Partner
Contributor | Elite Partner

CTA pop up form customisation

SOLVE

Can anyone help me to find a documentation (if any) for  form customisation? It was possible to customise
onFormSubmit event in the form embed code with old forms:
 https://legacydocs.hubspot.com/docs/methods/forms/advanced_form_options

However  I cannot find how to customise new pop up forms:

https://knowledge.hubspot.com/forms/create-pop-up-forms#form  

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

CTA pop up form customisation

SOLVE

Hey @lstepany this isn't currently possible. The form embed code you've linked isn't the "old" one, it's the form embed code. When embedded in a CTA you don't have access to the form embed code to add the callbacks. 

The only way to customise this would be to use your form embed code and create a custom pop-up yourself as CTAs wouldn't give you access to this. 

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

Book a meeting

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


View solution in original post

4 Replies 4
TomM2
Solution
Thought Leader | Platinum Partner
Thought Leader | Platinum Partner

CTA pop up form customisation

SOLVE

Hey @lstepany this isn't currently possible. The form embed code you've linked isn't the "old" one, it's the form embed code. When embedded in a CTA you don't have access to the form embed code to add the callbacks. 

The only way to customise this would be to use your form embed code and create a custom pop-up yourself as CTAs wouldn't give you access to this. 

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

Book a meeting

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


lstepany
Contributor | Elite Partner
Contributor | Elite Partner

CTA pop up form customisation

SOLVE

Thanks for reply @TomM2 !

Check this out! https://gist.github.com/justingivens/d705f1b9d0f8de0dc9303b17ebd68e8d

Justin forewarded this in the HubSpot's Slack API channel. It proofed to work pretty wall, I was able access the pop-up form data and to add any function I need 😎

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

CTA pop up form customisation

SOLVE

Interesting thanks for sharing @lstepany 

Has HubSpot confirmed CTA markup will stay consistent? In the past I've seen markup change when it's not publicly shared, particularly with new products. 

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

Book a meeting

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


lstepany
Contributor | Elite Partner
Contributor | Elite Partner

CTA pop up form customisation

SOLVE

That's avalid point I actually haven't checked that. Thanks! 🙂

0 Upvotes