---
schema_version: "1"
id: 45af05543ed3fc5459427cc618a1b64d78ad2048ef6b89dc03729b71359e94a3
title: Displaying Conditional Actions on a Card (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_displaying_conditional_actions_on_a_card.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_displaying_conditional_actions_on_a_card.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: e17d195ee5b5c3694979c910c662ed0ece8f3a7af2face4c5c207f25fe1359b3
description: For the managed package runtime, you can use conditions to show or hide actions on a card based on the card data. For example, you can have a card display one set of actions for a Policy card when the Status is New, and a different set when the Status is not New. To do this, clone a state on the card, modify the actions, and use conditions to determine when to display each state.
products:
  - Omnistudio
release: "264"
---
# Displaying Conditional Actions on a Card (Managed Package)

For the managed package runtime, you can use conditions to show or hide actions on a card based on the card data. For example, you can have a card display one set of actions for a Policy card when the Status is New, and a different set when the Status is not New. To do this, clone a state on the card, modify the actions, and use conditions to determine when to display each state.

![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).

1. In Vlocity Cards, create a card layout and add a card to it.
2. On your card, create a state with actions.
    
    See [Adding a State to a Card](https://help.salesforce.com/s/articleView?id=xcloud.os_adding_a_state_to_a_card.htm&release=264.0.0&type=5 "For the managed package runtime, add card states to display data fields from the card or card layout data source, to present different interactions and layouts based on specified conditions, to add actions, and to add flyouts to display additional information about a record. For example, for cards displaying past due policy information, use a card state template, and display actions, fields, and flyouts different from those on cards displaying information for active policies in good standing.").
3. Clone the state. Click the **Clone Template** icon in the top right corner of the state:
    
    ![image](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/omnistudio_for_managed_packages/images/clonestate.png)
4. Remove or add actions from the cloned state as necessary.
5. On the clone, click **\+ Add Condition** at the bottom, and create your condition.
    
    For example: `"Policy Status = New"` or `"DaysUntilExpiration__c < 31"`.
6. On the original state, click **\+ Add Condition** at the bottom, and add the opposite condition.
    
    For example: `"Policy Status != New"` or `"DaysUntilExpiration__c >= 31"`.