# Remove Column from Display - Quote Template

**URL:** <https://community.hubspot.com/t/remove-column-from-display-quote-template/68721>\
**Category:** CMS Development\
**Created:** [November 7, 2022, 2:28pm UTC](https://community.hubspot.com/t/remove-column-from-display-quote-template/68721 "2022-11-07T14:28:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SVenkatesan](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@SVenkatesan](https://community.hubspot.com/u/SVenkatesan)\
**Post date:** [November 7, 2022, 2:28pm UTC](https://community.hubspot.com/t/remove-column-from-display-quote-template/68721/1 "2022-11-07T14:28:19Z")

</div>

I have created a custom quote template in hubspot. I have used line item module to display custom column which I want.  
Lets say , Calculated Total Discount (hs\_total\_discount).  
I want to display off this field if value is empty or some condition acheived. Is this possible.  
Refer Image, where this field is empty , but anyways it is displaying.

 ![Screenshot 2022-11-07 at 7.56.30 PM.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/5/8/584473b5bc03e2fe3ee55b404a88e91f2060ae13.png)

---

<div class="post-metadata">

**Author:** ![Anton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/anton/32/103167_2.png) [@Anton](https://community.hubspot.com/u/Anton)\
**Post date:** [November 7, 2022, 4:16pm UTC](https://community.hubspot.com/t/remove-column-from-display-quote-template/68721/2 "2022-11-07T16:16:41Z")

</div>

Hi @SVenkatesan,

you can wrap the code which is responsible for this column in a if or unless statement like this

```lia-code-sample
{% unless template_data.quote.discount == "" %} {# use the name of the used query instead of template_data... here #}
<td>
{# your code for the discount column #}
</td>
{% endunless %}

```

best,

Anton

_Moderator note: While this solution may not address the original poster’s specific situation, it could be helpful for other community members facing similar challenges._

---

<div class="post-metadata">

**Author:** ![SVenkatesan](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@SVenkatesan](https://community.hubspot.com/u/SVenkatesan)\
**Post date:** [November 7, 2022, 5:11pm UTC](https://community.hubspot.com/t/remove-column-from-display-quote-template/68721/3 "2022-11-07T17:11:46Z")

</div>

```lia-code-sample
{% elif item.column_property == 'hs_total_discount' %}
 {% unless item.column_property == "" and item.column_property == null and item.column_property == unit.hs_pre_discount_amount and item.column_property=='0' %}
 <td style="text-align: right;padding-left: 0px;padding-right: 3px;padding-top: 20px;padding-bottom: 20px;">
 <span class="currency__content" style="text-align: right;">{{ unit[item.column_property]|format_currency(LOCALE, CURRENCY, true, true) }}</span>
 </td>
 {% endunless %}

```

Thanks Anton, But your solution just avoids executing my final span class or my code execution. But it doesnt OFF the column from displaying. It still displays as empty. Is my findings is right ?
