---
schema_version: "1"
id: 9e55725586023b40dc79961de5a6fcfc93804c508759829efb1a52526d2ef4af
title: Combine Elements Logically in a Block
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_block_14180.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_block_14180.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 43a17a2c463d908c5db2ddaa7329da108d956b7ac7aaca4693abc917aa266b99
description: 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.
products:
  - Omnistudio
release: "264"
---
# Combine Elements Logically in a Block

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.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/images/icon_note.png)

Note You can nest Blocks within other Blocks, but Blocks don’t support the Custom LWC Element.

1. From the elements panel, drag a **Block** element to the canvas and name the element.
2. In **Field Label**, enter a label that displays to users.
3. To render a collapsed block in the Omniscript, select **Collapse**.
4. In the **Heading Level** field, enter the nesting level of the element as a number.
5. Enable users to add multiple block entries:
    
    1. In Clone Elements, select **Copy elements**.
    2. In the designer on a managed package, select **Enable Repeat** under **Repeat Settings**.
    
    Repeatable blocks store data in an array format, where each block entry is indexed in an array under the Block's element name.
    
    - If you plan to access data from an element in a repeatable Block, see [Access to Data Within and Outside a Repeatable Block](https://help.salesforce.com/s/articleView?id=xcloud.os_evaluating_elements_in_repeatable_blocks_21869.htm&release=264.0.0&type=5 "Suppose you place an element in a repeatable block (a Block or an Edit Block) and you want to access data that is calculated in a different element. The method that you use to access the data depends on whether the element containing the data is within or outside the same repeatable block in the Omniscript. Review guidelines and examples for the Formula element and for the Select element, which is used to add a dependent picklist to an Omniscript.").
    - For information about prefilling blocks, see [Prefill Repeatable Blocks](https://help.salesforce.com/s/articleView?id=xcloud.os_prefill_repeatable_blocks_21959.htm&release=264.0.0&type=5 "Prefill repeatable blocks with data by passing data to the block in an array format.").
6. To clone values when a Block is repeated, select **Clone When Repeating**.
7. In the **Limit Repeat** field, enter a number to set the number of times a Block can be repeated.
8. Preview the Omniscript and test the functionality.

![Example](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 Data JSON output format based on your configuration to map data JSON from blocks:

- No block JSON:
    
    ![No block JSON example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/omnistudio/images/step_json_lwc_os_designer.png)
- Block JSON
    
    ![Block JSON example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/omnistudio/images/block_json_lwc_os_designer.png)
- Repeatable block JSON
    
    ![Repeatable block JSON example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/omnistudio/images/block_repeat_json_lwc_os_designer.png)

#### See Also

- [Access to Data Within and Outside a Repeatable Block](https://help.salesforce.com/s/articleView?id=xcloud.os_evaluating_elements_in_repeatable_blocks_21869.htm&release=264.0.0&type=5 "Suppose you place an element in a repeatable block (a Block or an Edit Block) and you want to access data that is calculated in a different element. The method that you use to access the data depends on whether the element containing the data is within or outside the same repeatable block in the Omniscript. Review guidelines and examples for the Formula element and for the Select element, which is used to add a dependent picklist to an Omniscript.")
- [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.")