CMS Development

KevinGordon
Member

Hide Forms Based on conditions

SOLVE

Heya! 

We have a client who has implemented HubSpot COS for their blog and gating videos. They have the same conversion form on a dozen video gated landing pages. Each video being short, maybe 5-10 minutes. Their goal is to get the person to submit conversion information for the first video they choose to watch, but not gate any subsequent content for that session. 

 

I know I can do this if I embed the form on their website and hook in to the onSubmit() function to set a custom cookie that hides the form for the duration of the session on all other pages, but I am looking to see if I can do this natively in HubSpot with either forms or workflows, or custom on-page code.

 

Has anyone else had experience with conditional gating?

 

Thanks!

0 Upvotes
1 Accepted solution
stefen
Solution
Key Advisor | Partner
Key Advisor | Partner

Hide Forms Based on conditions

SOLVE

I would suggest making a template with a smart HTML module. You can then easily add the form embed code and the video embed code and use the built-in smart rules.

Stefen Phelps, Community Champion, Kelp Web Developer

View solution in original post

2 Replies 2
stefen
Solution
Key Advisor | Partner
Key Advisor | Partner

Hide Forms Based on conditions

SOLVE

I would suggest making a template with a smart HTML module. You can then easily add the form embed code and the video embed code and use the built-in smart rules.

Stefen Phelps, Community Champion, Kelp Web Developer
KevinGordon
Member

Hide Forms Based on conditions

SOLVE

Perfect! This is exactly the type of solution I was looking for.


Thank you so much Stefen!