---
schema_version: "1"
id: bac1a71fedcfcb27481df81e73c149db5b2ab12c57ba2e98e3fdef2c665af636
title: Guidelines for Accessing Select Element Data in Repeatable Blocks
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_21869_select.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_evaluating_elements_in_repeatable_blocks_21869_select.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 491a18b18eb3fa13a9c76a1a9128931d9a10ad0b99d616db1e3432ae9facf6ca
description: 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

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.

## 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="d71679e74">Property</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d71679e76">Configuration</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d71679e74 ">Name</td>
            <td data-label="Configuration" class="slds-cell-wrap" style="vertical-align:top;" headers="d71679e76 ">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="d71679e74 ">Field Label</td>
            <td data-label="Configuration" class="slds-cell-wrap" style="vertical-align:top;" headers="d71679e76 ">The label that your users see.</td>
          </tr>
          <tr class="">
            <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d71679e74 ">Option Source</td>
            <td data-label="Configuration" class="slds-cell-wrap" style="vertical-align:top;" headers="d71679e76 ">Select SObject.</td>
          </tr>
          <tr class="">
            <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d71679e74 ">Source</td>
            <td data-label="Configuration" class="slds-cell-wrap" style="vertical-align:top;" headers="d71679e76 ">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="d71679e74 ">Controlling Field Type</td>
            <td data-label="Configuration" class="slds-cell-wrap" style="vertical-align:top;" headers="d71679e76 ">Select SObject.</td>
          </tr>
          <tr class="">
            <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d71679e74 ">Controlling Field Source</td>
            <td data-label="Configuration" class="slds-cell-wrap" style="vertical-align:top;" headers="d71679e76 ">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="d71679e74 ">
              <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="d71679e76 ">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="d71679e74 ">
              <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="d71679e76 ">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-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/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-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/omnistudio/images/repeatable_block_ex3_01.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-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/omnistudio/images/repeatable_block_ex3_02.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-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/omnistudio/images/repeatable_block_ex3_03.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-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/omnistudio/images/repeatable_block_ex3_04.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-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/omnistudio/images/repeatable_block_ex3_05.png)

![Example 4: Controlling and Dependent Picklists in Different Select
Elements](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/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-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/omnistudio/images/repeatable_block_ex4_01.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-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/omnistudio/images/repeatable_block_ex4_02.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-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/omnistudio/images/repeatable_block_ex4_03.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-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/omnistudio/images/repeatable_block_ex4_04.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-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/omnistudio/images/repeatable_block_ex4_05.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-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/omnistudio/images/repeatable_block_ex4_06.png)

#### See Also

- [Combine Elements Logically in a Block](https://help.salesforce.com/s/articleView?id=xcloud.os_block_14180.htm&release=264.0.0&type=5 "Combine logical groups of elements in an Omniscript Step using a Block element. Blocks help to group information to create nested JSON data. Blocks are contained within steps and can be repeated to capture an array of data. For example, street, city, state, and postal code elements can be combined into an address block.")
- [Manage Records with an Edit Block](https://help.salesforce.com/s/articleView?id=xcloud.os_edit_block_14256.htm&release=264.0.0&type=5 "Create, edit, and delete multiple Salesforce or external records on one page using Edit Block. For example, if you're collecting an Account's Contact information, you can add an Edit Block to your Omniscript to enable users to add a record for each Contact.")
- [Dependent Picklists](https://help.salesforce.com/s/articleView?id=platform.fields_about_dependent_fields.htm&type=5&language=en_US)
- [Using Salesforce Picklists with Omniscript Inputs](https://help.salesforce.com/s/articleView?id=xcloud.os_tie_a_picklist_to_salesforce_21624.htm&release=264.0.0&type=5 "You can dynamically populate a Select, Multi-Select, or Radio element in an Omniscript with values from a picklist in your Salesforce org or with a custom Apex class.")