# Hide Forms Based on conditions

**URL:** <https://community.hubspot.com/t/hide-forms-based-on-conditions/528>\
**Category:** CMS Development\
**Created:** [December 5, 2016, 9:14pm UTC](https://community.hubspot.com/t/hide-forms-based-on-conditions/528 "2016-12-05T21:14:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![KevinGordon](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kevingordon/32/76570_2.png) [@KevinGordon](https://community.hubspot.com/u/KevinGordon)\
**Post date:** [December 5, 2016, 9:14pm UTC](https://community.hubspot.com/t/hide-forms-based-on-conditions/528/1 "2016-12-05T21:14:33Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![stefen](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stefen/32/29274_2.png) [@stefen](https://community.hubspot.com/u/stefen)\
**Post date:** [December 5, 2016, 9:45pm UTC](https://community.hubspot.com/t/hide-forms-based-on-conditions/528/2 "2016-12-05T21:45:43Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![KevinGordon](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kevingordon/32/76570_2.png) [@KevinGordon](https://community.hubspot.com/u/KevinGordon)\
**Post date:** [December 5, 2016, 9:55pm UTC](https://community.hubspot.com/t/hide-forms-based-on-conditions/528/3 "2016-12-05T21:55:19Z")

</div>

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

Thank you so much Stefen!
