Conditional Content is a droppable container. Design anything inside it; at runtime the content renders only when the configured conditions are met. It complements the hide-if attribute with a visual, declarative rule editor and access to record data that is not merged on the page.
| Source | Evaluated | Examples |
|---|---|---|
| Logged in contact field | Server | Account.Type equals Partner, Onboarding_Complete__c is true |
| Context record field | Server | Status__c is one of Approved, Active |
| Login state | Server | User is logged in / is a guest |
| URL parameter | Browser | campaign equals summer |
| Device | Browser | mobile or desktop |
| Date, day of week, time | Browser | date >= 2026-12-01, dayOfWeek in saturday, sunday, time < 09:00 |
| Browser language | Browser | starts with fr |
Operators: equals, not equals, contains, does not contain, starts with, is one of, greater / less than, is blank, is not blank, is true, is false.
Choose whether all or any conditions must match, and whether a match shows or hides the content.
The container asks the server to evaluate the contact, record and session conditions. Field names of those conditions never reach the browser; only true / false results do. Browser side conditions are stored on the element and evaluated locally. When the outcome is false the children are removed from the page.
{
"type": "conditional-content",
"mode": "show",
"logic": "all",
"conditions": [
{ "source": "contactUser", "field": "Account.Type", "operator": "eq", "value": "Partner" },
{ "source": "session", "operator": "isLoggedIn" },
{ "source": "device", "operator": "eq", "value": "desktop" }
]
}
Events: portalconditionevaluated with the visibility result.