---
schema_version: "1"
id: e08d7f45eeedc9117287d52485803822018453a76d5e984b47dbade03f8de16a
title: Guidelines for Accessing Select Element Data in Repeatable Blocks (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_evaluating_elements_in_repeatable_blocks_select.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_evaluating_elements_in_repeatable_blocks_select.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 05fdc1ffd4d31e79aa8bcbe25715437589596b458d62f3659ea291b9b3c59200
description: For the managed package runtime, when you use a Select element within a repeatable block, review guidelines and examples for accessing data within or outside the same repeatable block. The Select element is used with Salesforce dependent picklists.
products:
  - Omnistudio
release: "264"
---
# Guidelines for Accessing Select Element Data in Repeatable Blocks (Managed Package)

For the managed package runtime, when you use a Select element within a repeatable block, review guidelines and examples for accessing data within or outside the same repeatable block. The Select element is used with Salesforce dependent picklists.

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

## Guidelines

In a repeatable block containing a Select element tied to a Salesforce dependent picklist, you use the dependent picklist element to access controlling picklist selections.

Guidelines for the controlling picklist element properties:

 
| Property | Configuration |
| --- | --- |
| Name | We recommend indicating in the name that this property is tied to the controlling picklist. |
| Field Label | The label that your users see. |
| Option Source | Select SObject. |
| Source | Indicate the picklist controlling field, separating the object and field names with a period. |
| Controlling Field Type | Leave as None. |

Guidelines for the dependent picklist element properties:

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d170538e85">Property</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d170538e87">Configuration</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d170538e85 ">Name</td>
            <td data-label="Configuration" class="slds-cell-wrap" style="vertical-align:top;" headers="d170538e87 ">We recommend indicating in the name that this property is tied to the
              controlling picklist.</td>
          </tr>
          <tr class="">
            <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d170538e85 ">Field Label</td>
            <td data-label="Configuration" class="slds-cell-wrap" style="vertical-align:top;" headers="d170538e87 ">The label that your users see.</td>
          </tr>
          <tr class="">
            <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d170538e85 ">Option Source</td>
            <td data-label="Configuration" class="slds-cell-wrap" style="vertical-align:top;" headers="d170538e87 ">Select SObject.</td>
          </tr>
          <tr class="">
            <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d170538e85 ">Source</td>
            <td data-label="Configuration" class="slds-cell-wrap" style="vertical-align:top;" headers="d170538e87 ">Indicate the picklist dependent field, separating the object and field
              names with a period.</td>
          </tr>
          <tr class="">
            <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d170538e85 ">Controlling Field Type</td>
            <td data-label="Configuration" class="slds-cell-wrap" style="vertical-align:top;" headers="d170538e87 ">Select SObject.</td>
          </tr>
          <tr class="">
            <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d170538e85 ">Controlling Field Source</td>
            <td data-label="Configuration" class="slds-cell-wrap" style="vertical-align:top;" headers="d170538e87 ">Indicate the picklist controlling field, separating the object and field
              names with a period.</td>
          </tr>
          <tr class="">
            <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d170538e85 ">
              <p>Controlling Field Element</p>
              <p style="margin-bottom:0;">In the same repeatable block</p>
            </td>
            <td data-label="Configuration" class="slds-cell-wrap" style="vertical-align:top;" headers="d170538e87 ">If the controlling field element is within the same repeatable block,
              enter <code>BlockName|n:ElementName</code>. Then,
              when the Omniscript runs, it accesses the named element in the current
              block.</td>
          </tr>
          <tr class="">
            <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d170538e85 ">
              <p>Controlling Field Element</p>
              <p style="margin-bottom:0;">In a different repeatable block</p>
            </td>
            <td data-label="Configuration" class="slds-cell-wrap" style="vertical-align:top;" headers="d170538e87 ">If the controlling field element (which references the controlling
              picklist) is in a different repeatable block, enter <code>BlockName|1:ControllingFieldElementName</code>
              (where the number after <code>BlockName|</code> is
              the block’s count in the Omniscript).</td>
          </tr>
        </tbody>
      </table>

![Example 3: Controlling and Dependent Picklists in the Same Block](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_example.png)

Example 3: Controlling and Dependent Picklists in the Same Block In this example, the Building Permit and Work Type block contains Select elements for both the controlling picklist and the dependent picklist. The Building Permit and Work Type block is repeatable (1).

![Omniscript design for a building permit application including a block element (1) containing Permit Type and Work Type dropdowns](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/repeatable_block_ex3_01_vlocity.png)

In the properties for the Building Permit and Work Type block, Enable Repeat is selected.

![Properties panel for the Building Permit and Work Type block, with Enable Repeat selected](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/repeatable_block_ex3_02_vlocity.png)

In the properties for the Select element for the controlling picklist, the Option Source is SObject, the Source is the object name and field, and the Controlling Field Type is None.

![Properties panel for the Permit Type element, which contains the controlling picklist](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/repeatable_block_ex3_03_vlocity.png)

In the properties for the Select element for the dependent picklist, the Controlling Field Type is SObject instead of None. The Controlling Field Source is the object name and field. The Controlling Field Element property uses `|n` to reference the controlling picklist because the picklists are in the same block.

![Properties panel for the Work Type element, which contains the dependent picklist](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/repeatable_block_ex3_04_vlocity.png)

In Preview, the dependent picklist content depends on the user’s selection in the controlling picklist.

![Preview of the building permit application form showing available selections in the Work Type dropdown when Commercial: Restaurant is selected in the Permit Type dropdown: Plumbing, Electrical, Framing, Waterproofing, Fire, Accessibility, Final](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/repeatable_block_ex3_05_vlocity.png)

![Example 4: Controlling and Dependent Picklists in Different Select
Elements](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_example.png)

Example 4: Controlling and Dependent Picklists in Different Select Elements In this example, the Select the Type of Work element contains the dependent picklist, which references the controlling picklist in the Select the Permit Type element. The Work Type block is repeatable (1).

![Omniscript design for building permit application form with building permit type and work type dropdowns in separate Block elements; the Work Type block (1) is repeatable.](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/repeatable_block_ex4_01_vlocity.png)

In the properties for the Work Type block, Enable Repeat is selected.

![Properties panel for the Work Type block, with Enable Repeat selected](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/repeatable_block_ex4_02_vlocity.png)

Properties for the Select the Permit Type element. It’s named PermitTypeControl to indicate that it contains the controlling picklist.

![Properties panel for the Select the Permit Type element](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/repeatable_block_ex4_03_vlocity.png)

Properties for the Select the Type of Work element. It’s named WorkTypeDependent to indicate that it contains the dependent picklist. The Controlling Field Type is SObject instead of None. The Controlling Field Source is the object name and field. The Controlling Field Element property references the controlling picklist element by specifying its location in the first block, Building Permit Type.

![Properties panel for the Select the Type of Work element](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/repeatable_block_ex4_04_vlocity.png)

Preview shows the controlling picklist selections.

![Preview showing available selections in the Select the Permit Type dropdown: Commercial: Retail, Commercial: Restaurant, Commercial: Light Industrial](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/repeatable_block_ex4_05_vlocity.png)

The dependent picklist content depends on the user’s selection in the controlling picklist.

![Preview of the building permit application form showing available selections in the Work Type dropdown when Commercial: Retail is selected in the Permit Type dropdown: Plumbing, Electrical, Framing, Waterproofing, Fire, Accessibility, Final](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/repeatable_block_ex4_06_vlocity.png)