CMS Development

hashSAM
Member

IF conditions not working in HTML + HubL templates

Hello everyone,

 

I am working on Custom Email Templates using HTML & HubL template. I have used IF conditions within the email template, but it is not working for "line_item.name" deal property.

 

I have added the IF condition as follows, but it never satisfies -

{% if line_item.name == 'SDC warranty' %}

//code

{% endif %}

 

Can anyone please let me know if I am missing anything here ?

 

Regards !

0 Upvotes
4 Replies 4
alyssamwilie
Recognized Expert | Elite Partner
Recognized Expert | Elite Partner

IF conditions not working in HTML + HubL templates

@dennisedson No additional code needed @hashSAM if statements on properties is currently not supported in email. It's a bit of a bummer.

If this answer solved your question, please mark it as the solution.

Alyssa Wilie Profile Image

Alyssa Wilie

Web Developerat Lynton

Learn HubL | Get Marketing Insights

HubSpot Elite Solutions Partner
Lynton's HubSpot theme Rubric now available. Click to download.
dennisedson
HubSpot Product Team
HubSpot Product Team

IF conditions not working in HTML + HubL templates

Sounds like an opportunity for an idea

0 Upvotes
alyssamwilie
Recognized Expert | Elite Partner
Recognized Expert | Elite Partner

IF conditions not working in HTML + HubL templates

I've actually heard they're already working on something for this, but I think it's only going to be for Enterprise. 😔

If this answer solved your question, please mark it as the solution.

Alyssa Wilie Profile Image

Alyssa Wilie

Web Developerat Lynton

Learn HubL | Get Marketing Insights

HubSpot Elite Solutions Partner
Lynton's HubSpot theme Rubric now available. Click to download.
dennisedson
HubSpot Product Team
HubSpot Product Team

IF conditions not working in HTML + HubL templates

Hey @hashSAM 

Might need some additional code for more context.  @alyssamwilie , do you have suggestions?

0 Upvotes