---
schema_version: "1"
id: 244de698726f064bc4f6d36050b79ea40734d82a2f77eb110efec58090c3a83c
title: Set a Default Value for an Element (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_set_a_default_value_for_an_element.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_set_a_default_value_for_an_element.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: a834ca433129a2c0fa1562cdcbe6ac6cab98afd0890f838d2994255e5e3ad1a6
description: For the managed package runtime, the Default Value property sets the JSON value of an element to a static value by default and exists on certain elements. The Default Value is overwritten if the element is prefilled from an Omnistudio Data Mapper or JSON response.
products:
  - Omnistudio
release: "264"
---
# Set a Default Value for an Element (Managed Package)

For the managed package runtime, the Default Value property sets the JSON value of an element to a static value by default and exists on certain elements. The Default Value is overwritten if the element is prefilled from an Omnistudio Data Mapper or JSON response.

For more information on how to dynamically prefill values, see 

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

[Populate Elements (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_populate_elements.htm&release=264.0.0&type=5 "For the managed package runtime, populate subsequent input elements with values from data JSON, formula operators, functions, concatenations, and static values. Prefill an element directly from an Omnistudio Data Mapper or Action response whenever possible. When a previous element assigns a value to a subsequent input element's Name, the subsequent input element is populated with the assigned value.").

Beginning with Vlocity Insurance and Health Winter '20 and Vlocity CME Winter '20, Default Value fields in LWC Omniscripts accept merge field syntax. For more information, see [Access Omniscript Data JSON with Merge Fields (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_access_omniscript_data_json_with_merge_fields.htm&release=264.0.0&type=5 "For the managed package runtime, enable Omniscript elements and element properties to access data JSON using merge fields. A merge field is a variable that references the value of a JSON node. For example, if a JSON node is \"FirstName\": \"John\", then the merge field %FirstName% returns John.").

1. Click the element to open its Properties panel.
2. From the element’s Properties panel, click the **Default Value** property.
3. Enter a literal value or a merge field.
    
    For a merge field, the value in the referenced field must already be present when the element is instantiated. The default value is set only when the element is instantiated for the first time.
    
    For elements such as Range and Number, the Default Value property only lets you enter a number. To enter a merge field, switch to the JSON editor.
    
    The date picker lets the user choose a date that is +/- 100 years from the **Default Value** of a Date element.
    
    For example, to set the default of a Date element to the value of a JSON node called `EffectiveDate`, enter the merge field %EffectiveDate% in the **Default Value** property.
4. Preview the Omniscript to view the default value in the Data JSON.