Combining Components with Render Logic
Use conditional logic inside component templates.
Combining Components with Render Logic
Example 1: Conditional Fields Per Record
<h3>{{!Opportunity.Name}}</h3>
<!--RENDER={{!Opportunity.Amount}} != null -->
<p>Amount: {{!Opportunity.Amount}}</p>
<!--ENDRENDER-->Example 2: Conditional Messaging by Status
<!--RENDER={{!Opportunity.StageName}} == 'Closed Won' -->
<p><strong>Status:</strong> Deal Won 🎉</p>
<!--ENDRENDER-->
<!--RENDER={{!Opportunity.StageName}} == 'Closed Lost' -->
<p><strong>Status:</strong> Deal Lost</p>
<!--ENDRENDER-->Example 3: Using Prefix / Postfix Tags
Last updated
Was this helpful?

