# Show/Hide Modules Based on User Deals

**URL:** <https://community.hubspot.com/t/show-hide-modules-based-on-user-deals/136769>\
**Category:** Email Marketing Tool\
**Tags:** marketing-email\
**Created:** [July 23, 2025, 9:59pm UTC](https://community.hubspot.com/t/show-hide-modules-based-on-user-deals/136769 "2025-07-23T21:59:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![FathimaReeza](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/fathimareeza/32/208162_2.png) [@FathimaReeza](https://community.hubspot.com/u/FathimaReeza)\
**Post date:** [July 23, 2025, 9:59pm UTC](https://community.hubspot.com/t/show-hide-modules-based-on-user-deals/136769/1 "2025-07-23T21:59:06Z")

</div>

Hello,

I am looking to show/hide a module in my HubSpot email based on the User’s Program interest which lives in Deal in our case. When I do for example,

{% if deal.partner\_program\_name == “AI Prompting” %}

Module

{% endif %}

This doesn’t do anything at all. Anyone have an idea as to how to achieve this?

---

<div class="post-metadata">

**Author:** ![karstenkoehler](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/karstenkoehler/32/68554_2.png) [@karstenkoehler](https://community.hubspot.com/u/karstenkoehler)\
**Post date:** [July 24, 2025, 3:58am UTC](https://community.hubspot.com/t/show-hide-modules-based-on-user-deals/136769/2 "2025-07-24T03:58:44Z")

</div>

Hi @FathimaReeza,

Just to confirm, how exactly are you testing this? Generally, deal personalization only works when emails are sent from deal-based workflows. Showing and hiding modules would, if it works at all, also be subject to the same requirement. It wouldn’t work for regular email sends, for example.

If you can’t get this to work, then – as far as I know – you could make the information you want to show/hide modules by on the contact record. One option to do so would be via a sync property: [Create sync properties that copy data to associated records](https://knowledge.hubspot.com/properties/create-sync-properties)

Best regards!

---

<div class="post-metadata">

**Author:** ![FathimaReeza](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/fathimareeza/32/208162_2.png) [@FathimaReeza](https://community.hubspot.com/u/FathimaReeza)\
**Post date:** [July 25, 2025, 9:02pm UTC](https://community.hubspot.com/t/show-hide-modules-based-on-user-deals/136769/3 "2025-07-25T21:02:28Z")

</div>

But I read that if we were to sync properties it wouldn’t align the deal property value with the correct contact. Is that true? SO I am confused as to what’s the purpose of this sync property if it doesn’t align the value with the correct contact.  
For example, we want to do SMS. But we can’t have both SMS and Email in the same workflow because of this contact/deal issue. So we have to create it’s own workflow for SMS so we can bring in the deal property in. But if this sync property is a solution doesn’t it make sense for it align the value with the correct contact as well?

---

<div class="post-metadata">

**Author:** ![Balaji\_Mavlers1](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/balaji_mavlers1/32/59061_2.png) [@Balaji\_Mavlers1](https://community.hubspot.com/u/Balaji_Mavlers1)\
**Post date:** [July 24, 2025, 11:43am UTC](https://community.hubspot.com/t/show-hide-modules-based-on-user-deals/136769/4 "2025-07-24T11:43:22Z")

</div>

Hi @FathimaReeza  
Your code isn’t working because HubSpot emails don’t have direct access to deals only contact properties unless the email is sent via a deal based workflow. For regular marketing emails, the best workaround is to copy the deal property into a contact property (via sync or workflow) and then use that property for your conditional logic or smart modules.

---

<div class="post-metadata">

**Author:** ![FathimaReeza](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/fathimareeza/32/208162_2.png) [@FathimaReeza](https://community.hubspot.com/u/FathimaReeza)\
**Post date:** [July 24, 2025, 4:47pm UTC](https://community.hubspot.com/t/show-hide-modules-based-on-user-deals/136769/5 "2025-07-24T16:47:04Z")

</div>

Got it, thank you for this explnation.
