---
schema_version: "1"
id: b918e27de6de3fccfec39420e79e4b5909f4d02bd65499d35ecc6bf7d084766f
title: Add a State to a Flexcard (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_add_a_state_to_a_flexcard.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_add_a_state_to_a_flexcard.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 6b1bcac1751846483fd01d646de0bbf5531a710659300bb15f58611b60c4f27b
description: For the managed package runtime, add a state to a Flexcard to present different interactions and layouts based on specified conditions. Each Flexcard has a default state that cannot be deleted. Add a State element to the canvas of a Flexcard, or clone a state already on the canvas.
products:
  - Omnistudio
release: "264"
---
# Add a State to a Flexcard (Managed Package)

For the managed package runtime, add a state to a Flexcard to present different interactions and layouts based on specified conditions. Each Flexcard has a default state that cannot be deleted. Add a State element to the canvas of a Flexcard, or clone a state already on the canvas.

![Managed Package app icon](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/resources-global/_corporate/images/managedpackageicon.png) This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see [Omnistudio Help](https://help.salesforce.com/s/articleView?id=xcloud.os_omnistudio_standard.htm&language=en_US).

To clone a state, see [Clone a Flexcard (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_clone_a_flexcard.htm&release=264.0.0&type=5 "For the managed package runtime, create an identical copy of a Flexcard with the Clone feature in the Flexcard Designer. Cloning an existing Flexcard creates a new Flexcard with a new Name, or Author, or both. The Name and Author must be unique.").

1. From the Flexcard Designer, drag a **State** element from the Build panel onto the canvas.
2. (Optional) To create a state to display when there are no records available, select the **Blank Card State** checkbox. For example, when a data source returns no records from the Policy object, create a state with an Omniscript action to add a Policy.
3. In the **Name** field, enter the name of the state, such as Active.
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/images/icon_note.png)
    
    Note
    
    The state **Name** is for internal use and does not appear on the generated LWC or in Preview.
4. To add data fields and other elements, see [Add Elements to a Flexcard (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_add_elements_to_a_flexcard.htm&release=264.0.0&type=5 "For the managed package runtime, add data fields, states, actions, and other elements to your Flexcard. Style an element and configure its properties in the Flexcard Designer.").
5. To add conditions that must be met for the state to display, see [Add Conditions to a Flexcard State (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_add_conditions_to_a_flexcard_state.htm&release=264.0.0&type=5 "For the managed package runtime, Flexcard states enable the presentation of different CRM interactions for each state. Set conditions to determine if, when, and how data displays on a Flexcard.").
6. (Optional) To style your state, click **Style** to open the Style panel, and see [Style Flexcard Elements (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_style_flexcard_elements.htm&release=264.0.0&type=5 "For the managed package runtime, configure the look and feel of a Flexcard by styling individual elements, fields inside elements, and entire states. From the Style panel in the Flexcard Designer, design backgrounds, text, and borders; adjust heights, widths, and spacing inside and between elements; apply classes and inline styles; make your element responsive; and more.").

What’s next: Style your element. See [Style Flexcard Elements (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_style_flexcard_elements.htm&release=264.0.0&type=5 "For the managed package runtime, configure the look and feel of a Flexcard by styling individual elements, fields inside elements, and entire states. From the Style panel in the Flexcard Designer, design backgrounds, text, and borders; adjust heights, widths, and spacing inside and between elements; apply classes and inline styles; make your element responsive; and more.").