For the complete documentation index, see llms.txt. This page is also available as Markdown.

Dynamic Components

Choose which component to render at runtime based on Salesforce data.

Dynamic Components

Dynamic components allow you to determine which component is rendered at runtime based on Salesforce data.

Example: Language-Based Component Selection

If you have components named:

  • Pricing Sheet English

  • Pricing Sheet Spanish

You can dynamically reference them:

{{{{!Pricing Sheet {{!Opportunity.Language__c}}}}}}

When to use Dynamic Components:

  • Small, known sets of components

  • 1 variable dimension such as language, region, or tier

  • Clean naming conventions

Avoid when:

  • More than ~2 variables

  • Component selection depends on record lists

  • Scalability and maintainability are concerns

Last updated

Was this helpful?