Enables a component to be used as a quick action on a record page. To specify the type of quick action, define a targetConfig with an actionType attribute.
Configures the component for a record action and defines component properties. The targetConfigs tag contains at least one targetConfig tag.
targetConfig
Configures a page type with this attribute.
Attribute
Description
Required
targets
Specify one or more page types in the targets attribute, such as <targetConfig targets="lightning__RecordAction"> or <targetConfig targets="lightning__RecordAction,lightning__RecordPage">. The targets attribute value must match one or more of the page types that you listed under <targets>.
Yes
actionType
Specify the type of Lightning web component quick action. Valid values are:
ScreenAction—(Default) Runs custom code in a modal window
Action—Runs custom code without opening a modal window
lightning__RecordAction doesn’t support component properties.
supportedFormFactors
A set of one or more form factors or devices that the component supports. Specify the supportedFormFactors tag set one time inside a targetConfig set. The supportedFormFactors tag contains at least one supportedFormFactors tag.
supportedFormFactor
Defines which form factor or device the component supports. Use one supportedFormFactor tag for each supported form factor.
The supportedFormFactor tag supports this attribute.
Attribute
Type
Description
Required
type
String
Device form factor on which the component displays. Valid values are:
Large—Represents the desktop form factor.
Small—Represents the phone form factor. This value isn’t supported for lightning__RecordAction because LWC quick actions don’t appear in the Salesforce mobile app.
You can use a quick action to navigate to an object page, such as the Contact home page. In this example, a headless quick action executes custom code you provide in an @api invoke() method.
You can’t change the action type after you’ve defined it in the configuration file. For example, you can’t change a component’s action type from Action to ScreenAction or vice versa after you deploy your component.
This release is in preview. Features described here don't become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can't guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.