# Show/Hide property values in Email

**URL:** <https://community.hubspot.com/t/show-hide-property-values-in-email/88959>\
**Category:** CMS Development\
**Tags:** email, enterprise\
**Created:** [September 5, 2023, 8:51am UTC](https://community.hubspot.com/t/show-hide-property-values-in-email/88959 "2023-09-05T08:51:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CHutt5](https://avatars.discourse-cdn.com/v4/letter/c/a3d4f5/32.png) [@CHutt5](https://community.hubspot.com/u/CHutt5)\
**Post date:** [September 5, 2023, 8:51am UTC](https://community.hubspot.com/t/show-hide-property-values-in-email/88959/1 "2023-09-05T08:51:02Z")

</div>

Hi,

I’m looking to see if its possible to show/hide labels in an email based on whether the contact filled out the field on a form

E.g Hide the ‘Phone Number’ label, if the contact didnt fill that field.

Any help appreciated, thanks!

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [September 5, 2023, 7:50pm UTC](https://community.hubspot.com/t/show-hide-property-values-in-email/88959/2 "2023-09-05T19:50:17Z")

</div>

Hi, @CHutt5 👋 Thanks for your question. Have you tried using HubL to control if a value is displayed? It’s not based on a form submission, but on whether or nor a property has a value for the specific record.

```lia-code-sample
{% if contact.phone_number %}
 Phone Number: {{ contact.phone_number }}
{% endif %}

```

Have fun building! — Jaycee

---

<div class="post-metadata">

**Author:** ![CHutt5](https://avatars.discourse-cdn.com/v4/letter/c/a3d4f5/32.png) [@CHutt5](https://community.hubspot.com/u/CHutt5)\
**Post date:** [September 6, 2023, 8:59am UTC](https://community.hubspot.com/t/show-hide-property-values-in-email/88959/3 "2023-09-06T08:59:11Z")

</div>

Hi [@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074),

Thanks for your reply.

Where would I put the code exactly?

Thanks
