---
sourceDocument: Brazil Build or modify applications
sourceDocumentLink: https://www.servicenow.com/docs/r/application-development

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Build or modify applications

ft:clusterId :

    - cadev

bundleId :

    - cadev

workflow :

    - Development, Data, and Analytics


---

# Document display component setup

# Document display component setup {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 4 minutes to read  
The Document display component
displays either HTML content or PDF attachments.

## Before you begin

This task assumes you have placed the component on the page and are ready to configure the properties and events. For instructions on accessing and using features in UI Builder, see [Customize UI Builder pages using components](https://www.servicenow.com/docs/YMtTz79hYjmj5_kMcObIuA "Learn what a component is in UI Builder. Also, see how components work within UI Builder.").  
Note:  
This document describes the latest component functionality. Go to the store to make sure you have the latest version of the component.

Role required: admin or ui_builder_admin

## Procedure

1. Define a label for your Document display that differentiates it from other components in the content tree.  
   A label makes finding the component easier in a large list of components. For
   instructions on using the content tree, see [Manage UI pages and page variants](https://www.servicenow.com/docs/Hq7OFdFRjvDFnNsfdtsMGw "Learn what a page is in UI Builder. Understand the building blocks of a UI Builder page, such as column layouts and components.") .

   ![Content tree showing a document display component.]()
2. Select the Document display component, using one of these methods:
   * Click anywhere within the component.
   * Select the Document display label you created for your component in the content tree.

   {#document-display-component-uib-setup__choices_h23_q4b_zrb}  
   The property fields appear in the Config tab in the setup
   panel on the right.
{#document-display-component-uib-setup__steps_g23_q4b_zrb}

## Document display component properties {#ariaid-title2}

Configure the type, location, and content of the document to display. Set the
document's appearance and whether it's editable.
To configure the properties, enter either static or dynamic input. Enter dynamic input by selecting the input type.

* Data binding: Creates dynamic property values from multiple sources. Sources include state variables (@state), URL variables (@context), or data resource payloads (@data). For details, see [Add and configure data resources to a
  page](https://www.servicenow.com/docs/~B53KgSqh6jyRj9wmzg8LA "Add data resources to dynamically expose data from tables, records, or other elements on your page in UI Builder.") .
* Scripting: Creates a scripted property value. For details on scripted values, see [Create and bind a client state parameter to a component](https://www.servicenow.com/docs/JxkxcsWDJlkywLr4rc~p8A "Create and bind a client state parameter value to a component in UI Builder. By adding custom values to your components, these components can then be automatically updated through a script.") .
{#document-display-config-properties__choices_4jq_bp0_csl}

<br />

### Properties {#document-display-config-properties__section_fyv_dp1_2fc}

{#document-display-config-properties__table_dfb_trb_zrb__entry__2}

| Label \[property\] | Description |
|-|-|
| Document type \[documentType\] | The type of document to be viewed. Choices: * Attachment record * HTML {#document-display-config-properties__ul_wsp_hsb_zrb} The other properties to configure vary, depending on the selection you make here. |
[ ]

{#document-display-config-properties__table_dfb_trb_zrb}

### HTML document properties {#document-display-config-properties__section_dlg_5sb_zrb}

{#document-display-config-properties__table_b12_wsb_zrb__entry__2}

| Label \[property\] | Description |
|-|-|
| Edit HTML content \[htmlContent\] | Opens an editor where you write the HTML content. |
| Enable editing \[enableEditing\] | When true, runtime users can edit the HTML. The tab for the document display includes an HTML editor. |
[ ]

{#document-display-config-properties__table_b12_wsb_zrb}

### Attachment record properties {#document-display-config-properties__section_cbx_kvb_zrb}

{#document-display-config-properties__table_r4c_nvb_zrb__entry__3}

| Label \[property\] | Property | Description |
|-|-|-|
| Attachment content type \[attachmentType\] |   | The type of attachment to be viewed. Choices: * PDF * Image {#document-display-config-properties__ul_kzw_qvb_zrb} |
| Attachment sys_id \[attachmentId\] | attachmentId | The `sys_id` of a document to be viewed. Instead of specifying the `sys_id`, you can begin typing the filename. The system gives you a list of matching files. |
| Target attachment sys_id \[targetAttachmentId\] | targetAttachmentId | The `sys_id` of a new target document. If document display is opened in compare mode, this will be used to combine the source and target document into one, showing the changed text in red. This can be used to identify changes between two versions of the same document. |
| Hide toolbar \[hideToolbar\] | hideToolbar | In runtime, the user can have a toolbar with search, zoom, rotation, and other functions. When Hide toolbar is enabled, users don't have access to any of the toolbar features. Default: false |
| Hide search \[hideSearch\] |   | When true, hides the search function in the toolbar. PDF only. Requires Hide toolbar to be false and the attachment content type to be PDF. Default: false |
| Hide navigation \[hideNavigation\] |   | When true, hides the page navigator in the toolbar. PDF only. Requires Hide toolbar to be false and the attachment content type to be PDF. Default: false |
| Hide download \[hideDownload\] |   | When true, hides the download button in the toolbar. Requires Hide toolbar to be false. Default: false |
| Hide zoom \[hideZoom\] |   | When true, hides the zoom in and zoom out buttons in the toolbar. PDF only. Requires Hide toolbar to be false and the attachment content type to be PDF. Default: false |
| Hide rotation \[hideRotation\] |   | When true, hides the clockwise and counter-clockwise rotation buttons in the toolbar. PDF only. Requires Hide toolbar to be false and the attachment content type to be PDF. Default: false |
| Hide delete \[hideDelete\] |   | When true, hides the delete button on the toolbar. Requires Hide toolbar to be false. Default: false |
| Hide close \[hideClose\] |   | When true, hides the close button on the toolbar. Requires Hide toolbar to be false. Default: false |
[ ]

{#document-display-config-properties__table_r4c_nvb_zrb}

## Document display component events {#ariaid-title3}

Select event handlers to configure the actions (events) provided with the Document display component.
The Events tab shows the events used by the Document display component. To view the available events, select + Add event mapping. Select the event in the list to add one or more event handlers.

### Event handlers {#document-display-config-events__section_nim_rod_66w}

Event handlers work with data resources to link the Document display actions to the data
you want to display to your users. Select the event in the list to add one or more event
handlers.

For instructions on adding event handlers to an event, see [Configure an event handler](https://www.servicenow.com/docs/8s23OEG1s5oowl~vaOUlLw "Add an event handler to a page, component, data resource, or declarative action within UI Builder so that your user can trigger an action.").

### Event descriptions {#document-display-config-events__section_hhj_lsb_mvb}

{#document-display-config-events__table_zx2_czb_zrb__entry__2}

| Event | Description |
|-|-|
| Close button clicked | Dispatched when user clicks the close button or the delete button. This event doesn't have a payload. |
| Delete confirmation submitted | Dispatched when the user confirms deleting the document. Payload includes `sysId`: The `sys_id` of the deleted record. |
| HTML updated | Dispatched when the user edits HTML. Payload includes `value`: The updated HTML value |
[ ]

{#document-display-config-events__table_zx2_czb_zrb}

