---
schema_version: "1"
id: 656295dd72f116fff81e0e93c502a28b1b2d438b8dde7dbd003fa2b4bb2d7256
title: Configure an Edit Block in Omniscripts
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_configure_an_edit_block_14284.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_configure_an_edit_block_14284.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 0d57705505ed2d18c2b40f01e1d8743f3d27ba78aaf697ea044e392f7af26e99
description: Edit Blocks enable a user to add and edit multiple entries in a single array. For example, you can use an Edit Block to list and edit an Account's list of Contacts. Edit Blocks are repeatable blocks by default. Prefilling repeatable blocks with data is possible using an array format.
products:
  - Omnistudio
release: "264"
---
# Configure an Edit Block in Omniscripts

Edit Blocks enable a user to add and edit multiple entries in a single array. For example, you can use an Edit Block to list and edit an Account's list of Contacts. Edit Blocks are repeatable blocks by default. Prefilling repeatable blocks with data is possible using an array format.

## Setting Display Modes and Templates

Enable Omniscripts to display different Edit Block user interfaces by using Modes.

![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't nest Edit Blocks within other Edit Blocks, and you can add only one level of Block inside an Edit Block. Also, Edit Blocks don’t support the Custom LWC Element.

## Edit Block Modes

Select the mode of the Edit Block to change its display and functionality.

Inline

Lightning example:

![Entering text in an inline Edit Block](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/omnistudio/images/owc_editblock_inline_lightning.gif)

Newport example:

![Entering text in an inline Edit Block](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/omnistudio/images/owc_editblock_inline_newport.gif)

Table

The maximum number of elements that you can show as columns is 6.

Currently, edit blocks configured in table mode in Omniscripts aren't compatible with screen readers. If you use a screen reader, we recommend that you use Flexcards instead of Omniscripts. In Flexcards, you can use data tables or Lightning datatables that are compatible with screen readers. See [Show Data in a Table on a Flexcard](https://help.salesforce.com/s/articleView?id=xcloud.os_add_a_datatable_to_a_flexcard_29717.htm&type=5&language=en_US) and [Lightning Web Component – Datatable](https://developer.salesforce.com/docs/component-library/bundle/lightning-datatable/documentation).

Lightning example:

![Entering text in a table Edit Block](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/omnistudio/images/owc_editblock_table_lightning.gif)

Newport example:

![Entering text in a table Edit Block](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/omnistudio/images/owc_editblock_table_newport.gif)

Finance Statement

The total combined width of the elements must be less than or equal to 12. Salesforce recommends displaying fewer than twelve elements. Hidden elements don't affect the total display width

Lightning example:

![Entering text in a Finance Statement Edit Block](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/omnistudio/images/owc_editblock_fs_lightning.gif)

Newport example:

![Entering text in a Finance Statement Edit Block](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/omnistudio/images/owc_editblock_fs_newport.gif)

Cards

The maximum number of elements that you can display in Cards mode varies by element type. For example, you can display up to three Text Elements. Visually inspect the Edit Block to ensure that elements are rendered correctly.

To add more than the maximum number of elements, set the `height` attribute of the Edit Block to `auto` in Omniscripts, for example:

`.omni-edit-block-card.omni-edit-block-short-cards[omnistudio-omniscriptEditBlock_omniscriptEditBlockCards] { height: auto !important }`

Lightning example:

![Entering text in a Cards Edit Block](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/omnistudio/images/lwc_edit_block_short.gif)

Newport example:

![Entering text in a Cards Edit Block](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/omnistudio/images/lwc_edit_block_short_card_newport.gif)

LongCards

The width of LongCards must be set to 12.

The maximum number of elements that you can display in LongCards mode varies by element type. For example, you can display up to four Text Elements. Visually inspect the Edit Block to ensure that elements are rendered correctly.

To add more than the maximum number of elements, set the `height` attribute of the Edit Block to `auto` in Omniscripts, for example:

`div.slds-grid.slds-grid_vertical.slds-grid_align-center.slds-p-left_small.slds-max-small-size_5-of-12.slds-small-size_8-of-12 { height: auto !important; }`

Lightning example:

![Entering text in a Long cards Edit Block](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/omnistudio/images/owc_editblock_longcards_lightning.gif)

Newport example:

![Entering text in a Long cards Edit Block](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/omnistudio/images/owc_editblock_longcards_newport.gif)

## Compatible Elements

The following elements are compatible with Edit Block:

- Aggregate
- Checkbox
- Currency
- Date
- Date/Time
- Disclosure
- Email
- File
- Formula
- Headline
- HTTP Action
- Image
- Integration Procedure Action
- Line Break
- Lookup
- Matrix Action
- Multi-select
- Number
- Password
- Radio
- Radio Group
- Range
- Remote Action
- Select
- Signature
- Telephone
- Text
- Text Area
- Text Block
- Type Ahead Block
- Time
- URL

## What’s Next

Add actions to an Edit Block or use sObject mapping to create, edit, and delete records. See [Add, Edit, and Delete Records with Edit Block Actions](https://help.salesforce.com/s/articleView?id=xcloud.os_addeditand_delete_records_with_edit_block_actions_14582.htm&release=264.0.0&type=5 "Enable users to add, edit, and delete records by using Edit Block's default remote actions. To add custom functionality, configure additional actions.").

#### See Also

- [Custom Styles for Omniscripts](https://help.salesforce.com/s/articleView?id=xcloud.os_style_omniscripts_18959.htm&release=264.0.0&type=5 "Add custom styling to Omniscripts by using static resources, overriding global stylesheets, or using SLDS design tokens. View the behavior of each customization option in this page's table, and choose the solution that meets your requirements.")
- [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.")