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
Did my post help answer your query? Help the community (and me) by marking it as a solution.
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
Did my post help answer your query? Help the community (and me) by marking it as a solution.
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 😎
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
Did my post help answer your query? Help the community (and me) by marking it as a solution.