Supported XML Configuration for Publishing Flexcards

When publishing Flexcards, you have options for where and how the Flexcard is displayed. For these options, you can configure XML metadata for the Lightning web component for a Flexcard. Flexcards supports many but not all of the available configuration elements.

XML Configuration Elements Supported for Flexcards
Configuration Element Valid Values Supported for Flexcards Notes
apiVersion   No  
capabilities lightningCommunity__RelaxedCSP Not applicable  
capabilities lightning__ServiceCloudVoiceToolkitApi Not applicable Flexcards don't use the Service Cloud Voice Toolkit API.
capabilities lightning__dynamicComponent Not applicable  
description   Yes  
isExposed   Yes For Spring '24 and later, this element is enabled by default and can't be changed.
masterLabel   Yes  
target lightningCommunity__Default Yes  
target lightningCommunity__Page Yes  
target lightningCommunity__Page_Layout Not applicable Flexcards don't build page layouts.
target lightningCommunity__Theme_Layout Not applicable Flexcards don't build theme layouts.
target lightningSnapin__ChatHeader Not applicable This element is used with lightningsnapin/baseChatHeader extensions, which Flexcards don't create.
target lightningSnapin__ChatMessage Not applicable This element is used with lightningsnapin/baseChatMessage extensions, which Flexcards don't create.
target lightningSnapin__Minimized Not applicable This element is used with lightningsnapin/minimized extensions, which Flexcards don't create.
target lightningSnapin__PreChat Not applicable This element is used with lightningsnapin/basePrechat extensions, which Flexcards don't create.
target lightningStatic__Email Not applicable Flexcards aren't used to build email templates.
target lightning__AppPage Yes  
target lightning__FlowScreen Not by default  
target lightning__HomePage Yes  
target lightning__Inbox Not applicable Flexcards aren't used in email application panes.
target lightning__RecordAction Not applicable  
target lightning__RecordPage Yes  
target lightning__Tab No  
target lightning__UtilityBar No  
target lightning_VoiceExtension Not applicable Flexcards aren't used on Voice Extension pages.
target analytics__Dashboard Not applicable Flexcards aren'tused on the analytics dashboard.
event   Not applicable Flexcards already support pubsub events and event listeners for dynamic interactions.
property   See the Property Attributes Supported for Flexcards table.
propertyType   No This element applies only if target is set to lightning__FlowScreen.
objects   Yes  
schema   Not applicable  
supportedFormFactors   No All Flexcards are available for the mobile form factor because there's not a way to filter Flexcards.
hasStep   Not applicable This element only applies when target set to analytics__Dashboard. Flexcards don't support this target.

This table shows the attributes for the property configuration elements that Flexcards support.

Property Attributes Supported for Flexcards
Attribute Supported for Flexcards Notes
datasource Yes  
default Yes  
description Yes  
exposedTo No This attribute is required with the screenResponsive attribute, which Flexcards don't support.
filter Not applicable  
label Yes  
max Yes  
min Yes  
name Yes  
placeholder Yes  
required Yes  
role No This attribute applies only if the target element is set to lightning__FlowScreen.
screenResponsive No  
type Yes