---
schema_version: "1"
id: 8f37e9d921aca3deb44d9192c6ca204540f0aee1cf73a7350f6f0b130310336d
title: Creating a Custom State Field (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_creating_a_custom_state_field.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_creating_a_custom_state_field.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 8c72dd791801537ae229371f3bb2fc5e98eb24a894219407c181488f4490aefd
description: "For the managed package runtime, you can create a custom State Field in the template for your layouts or cards by entering 'custom-type' into the supporting HTML for the template in the Template Designer, as follows:"
products:
  - Omnistudio
release: "264"
---
# Creating a Custom State Field (Managed Package)

For the managed package runtime, you can create a custom State Field in the template for your layouts or cards by entering `'custom-type'` into the supporting HTML for the template in the Template Designer, as follows:

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

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

The **custom-type** appears in the State Field type in the Card Designer:

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

You can review the custom type's structure as entered in the Template Designer via the Preview tab in the Card Designer:

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