---
schema_version: "1"
id: f74b3295c473288051e929e4931da32fb5f0211430a9ff1938c69ac0bbbe5cde
title: Set Up Conditions Based on Flexcard States
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_add_conditions_to_a_flexcard_state_35695.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_add_conditions_to_a_flexcard_state_35695.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 754d59bf2330cf027fc0609dc8e58293a0aeeadd2adddbef57a35289631676c3
description: Flexcard states determine the fields and actions available to the user. When you create a Flexcard, Omnistudio assigns a default state. You can create more as needed to offer different information and interactions based on conditions that you define. For example, include an empty state when no data is available, or visual cues when a user action is required such as a payment or an acknowledgment. Or add different buttons based on a support case status such as Reopen for closed cases and View for escalated cases.
products:
  - Omnistudio
release: "264"
---
# Set Up Conditions Based on Flexcard States

Flexcard states determine the fields and actions available to the user. When you create a Flexcard, Omnistudio assigns a default state. You can create more as needed to offer different information and interactions based on conditions that you define. For example, include an empty state when no data is available, or visual cues when a user action is required such as a payment or an acknowledgment. Or add different buttons based on a support case status such as Reopen for closed cases and View for escalated cases.

1. From the App Launcher, find and select **Flexcards**.
2. Expand a Flexcard and select a version.
3. If needed, deactivate the Flexcard for editing the Flexcard.
4. From the elements panel, drag the **State** element to the canvas.
5. To create a state to display when there are no records:
    
    - Select **Use this state when the FlexCard returns a null value**.
    - If you're using the designer on a managed package, select **Blank Card State**.
    
    For example, when a data source returns no records from the Policy object, create a state with an Omniscript action to add a policy.
6. Enter an internal name for the state.
7. Add conditions and elements as needed.
    
    When you add multiple states, Omnistudio runs through them from top to bottom, and shows the data of the first state that meets the conditions. We recommend that you organize the states from the most complex to the simplest ones. Then, at the end, add a state with no conditions, and then add a blank card state.