Conditional Content In Email SMS And Web Pages
in progress
T
Team BAM
Conditional content creates a huge time saving opportunity. Imagine using the same emails for two types of leads in your funnel, but the call to actions are different. Why duplicate over and over again when conditionals could be created inside the email to decide what content is displayed. Conditional content in emails, sms, landing pages, would also provide a small degree of personalization which can help in a number of ways.
FB-I-69
Log In
I
Ivo Dimitrov
Use case:
Now I need to display content in store (Product List page) based on collection page/url/name.
I thought I can create a page for every collection, but that is not possible, because I can't drop a "Products" list element in pages with products based on collection. Only featured products that can be selected one by one. And will be time consuming.
So, I used this code as a workaround to make it work (Gemini wrote it).
Custom Code 1 (the text element):
"<h1 id="dynamic-collection-title" style="display: none; text-align: center;"></h1>"
Custom Code 2 (the function):
"<script>
document.addEventListener("DOMContentLoaded", function() {
const collectionMap = {
'heartborn': 'HeartBorn',
'zodiac': 'Zodiac'
};
const currentPath = window.location.pathname;
const targetElement = document.getElementById('dynamic-collection-title');
let matchFound = false;
for (const [slug, title] of Object.entries(collectionMap)) {
if (currentPath.includes('/' + slug)) {
targetElement.innerText = title;
targetElement.style.display = 'block';
matchFound = true;
break;
}
}
});
</script>"
We need comprehensive Conditional Logic content element to display whatever we want however we want based on whatever info we have about contact or any other data in the system.
Or better, let an AI to create us "custom elements" for websites/funnels with some guardrails (so it does not break sites), so we and our clients can create elements based on use case and reuse and drag/drop them wherever.
I
Ivo Dimitrov
2 of my websites are 95% built with AI codes that I drop in sections within Code Elements. I rarely use the built-in elements, because of constraints and lack of flexibility for design and functions. Just think about that with future updates regarding websites, etc.
P
Phil Harris
I really want this to be based on Tags, that would be WAY more useful than basing it on custom fields
S
Shreya Banerjee
Conditional Content is already live in Email Builder where you can set conditions based on Contact's custom fields.
Example:
If The Location is X -> Show image A
If not X -> Show image B
L
Leo Herrmann
Shreya Banerjee that's right. It would be awesome if it could evaluate custom values too.
J
Jodee Peevor
Shreya Banerjee Yes we know - in web pages it would be awesome - eg if a contact clicks a link from an email we send the content can be conditional based on their custom fields info like it can in emails?
J
Jake Talbert
Shreya Banerjee SMS and Webpages would be nice as well. And, the conditional logic is a simple V1. I would like if we could add more than one condition.
K
Kyle Bahr
Shreya Banerjee
It's missing the ability to target custom fields and custom values.
It's missing some basic features such as
- is empty
- is not empty
- contains
- is in list
- is not in list
Ideally the Conditional Logic / Visibility would share the same filtering logic that exists in Smart Views or an "If step" within a workflow.
This request could also tie into this:
M
Mackensie Liberman
Shreya Banerjee
Kyle Bahr's comment explains perfectly what is really needed for the conditional logic of emails. In addition, being able to have a condition based on the presence of a tag, or not having the tag, and not basing it solely on custom fields would be great.
B
Ben .
Any updates on this? We're almost at the end of 2025!
N
Nick James
In this conditional content update can GHL also consider how we can map the default phone number used to send SMS with the area code of the contact's phone number? Right now its crazy sub account workflows need to add a if/else statement and duplicate a send SMS step just to ensure an international customer gets their txt message. This needs to be fully handled inside GHL (surely).
A
Andron Ocean
Conditions based on tags are vital for this to be useful. 99% of the time I would want to check whether 1 or more tags is present.
Some additional options that would be nice to have: AND/OR switches, "is empty/not empty", "contains" operator for strings, less/greater than for numbers, "any of" options for select fields.
S
Saqib Mohammed
marked this post as
in progress
R
Robert Wazlavek
Please add more Conditions other than "Is" and "Is Not". We need "Contains" and "Does Not Contain" especially. We also need to have more fields than just Contact Fields. We need Opportunity Fields and Custom Values as well. Saqib Mohammed
N
Nicolaos Antipas
Whats the point of this without tags? Very limited.
J
Jeremy Biggs
The conditional content abilities in Email Templates is VERY limited...
Even the example provided in the email builder about Conditional sending to a Country is not possible because the 'Country' field (being a dropdown) is not avaliable as a conditional selection
In particular conditional field seletions for these objects & use cases would be super helpful to really use this powerful feature:
- Company fields: Contacts associated with a company in a speficic industry sector can then see conditional content for that industry.
- Opportunity / Estimate / Invoice emails: Contacts associated could dynamically be presented with images & text regarding that specific deal or opportunity type. This would extend powerful functions to hyper-personalise estimates which are part of the sales toolset.
Please can we add conditional login for AND / OR scenarios as well and perhaps future proof this by also including Custom Objects?
R
Rebecca Gonzales
We need the ability to set conditions based on ALL fields, not just text areas. And we need more operators than "is"/"is not".
Load More
→