---
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


---

# Digital Signature component setup

# Digital Signature component setup {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 5 minutes to read  
The Digital Signature component
requires users to sign documents digitally to agree to terms in the document.

## Before you begin

Verify that your instance has the Digital Signature API
(com.glide.digital_signature_api) plugin. This plugin is active by default. This plugin
includes a data resource that page authors can call to process the signature event and
either generate a new document or only save the signature.  
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 Digital Signature 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.") .

2. Select the Digital Signature component, using one of these methods:
   * Click anywhere within the component.
   * Select the Digital Signature label you created for your component in the content tree.

   {#digital-signature-component-uib-setup__choices_dnq_xld_xrb}  
   The property fields appear in the Config tab in the setup
   panel on the right.
{#digital-signature-component-uib-setup__steps_cnq_xld_xrb}

## Digital signature component properties {#ariaid-title2}

Provide the terms and conditions that the user agrees to with their signature.
Configure the Digital Signature
properties and reusability preference.
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.") .
{#digital-signature-config-properties__choices_4jq_bp0_csl}
{#digital-signature-config-properties__table_mdl_zpd_xrb__entry__2}

| Label \[property\] | Description |
|-|-|
| Agreement text \[agreementText\] | The terms and conditions that the user agrees to with their signature. You can use a data binding to reference a reusable agreement text, such as `@context.props.documentDetail.acknowledgementText`. Default: I agree to terms and conditions. |
| Legal text \[legalText\] | The legal status of the digital signature. Default: This constitutes your electronic signature and is the same as signing a printed document. |
| Hide save signature option \[hideSaveSignature\] | When true, hides the check box for saving the user's signature for future use. |
| Save signature checked \[saveSignatureChecked\] | When true, the check box for saving the user's signature is checked automatically, and the user's signature is saved for future use. This property is not available when Hide save signature option is true. |
| Typed signature \[typedSignature\] | A typed name that serves as the digital signature. A user provides either a typed signature or a drawn signature, not both. |
| Drawn signature \[drawnSignature\] | A drawn signature of the user. The user provides either a typed signature or a drawn signature but not both. |
| Submit button label \[submitBtnLabel\] | Label for the Submit button. Default: Submit |
| Hide secondary action button \[hideSecondaryAction\] | If there is no secondary action, this option hides the secondary action button. Default: True |
| Secondary button label \[secondaryBtnLabel\] | The label for the secondary action button, if one exists. This property is not available when Hide secondary action button is true. |
| Hide submit button \[hideSubmitButton\] | When true, hides the submit button. Default: False |
[ ]

{#digital-signature-config-properties__table_mdl_zpd_xrb}

## Digital signature component events {#ariaid-title3}

Select event handlers to configure the actions (events) provided with the Digital Signature component.
The Events tab shows the events used by the Digital Signature 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 {#digital-signature-config-events__section_dng_m2n_wwb}

Event handlers work with data resources to link the Digital Signature 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 {#digital-signature-config-events__section_eng_m2n_wwb}

{#digital-signature-config-events__table_ev2_15d_xrb__entry__2}

| Event | Description |
|-|-|
| Submit button clicked | User activates the button to generate a digital signature for the document. Payload: * The agreement text, `agreementText` * Whether the signature is typed or drawn, `tabFocused` * The signature data (typed or drawn), `signature` * The signature image (typed or drawn), `encodedSignature` * Whether to store the signature for reuse, `saveSignatureChecked` {#digital-signature-config-events__ul_rvx_bvk_xrb} Event handler: Client script that passes the payload and any relevant Digital Signature API calls |
| Secondary button clicked | (Optional) User activates the button to do something other than sign the document. For example, you can provide a Cancel button if the user does not want to accept the agreement. Event handler: Client script |
| Digital signature updated | User finishes updating their digital signature. Payload: * The agreement text, `agreementText` * Whether the user has agreed to the agreement text, `agreementTextChecked` * Whether the signature is typed or drawn, `tabFocused` * The signature data (typed or drawn), `signature` * The signature image (typed or drawn), `encodedSignature` * Whether to store the signature for reuse, `saveSignatureChecked` {#digital-signature-config-events__ul_w2v_qxs_w2c} |
[ ]

{#digital-signature-config-events__table_ev2_15d_xrb}  

### HR Agent Workspace digital signature {#digital-signature-config-events__example_nky_3xk_xrb}

If you are using Case and Knowledge Management, you likely have the HR Agent
Workspace. This Workspace Experience includes a Digital Signature component. For information about how this component is used in runtime, see E-signature in HR Service Delivery Agent Workspace. In this example, you see the component's event handlers.

The Digital Signature component and data resource don't dictate where the data for the document comes from, or
even if there is a document. Therefore, the creators of the workspace added a data resource
on the digital signature page's parent page. The data resource fetches details of the
document to be signed and passes them down in a documentDetail
property. You need to create an equivalent solution for your own data.

The documentDetail property is added to the page configuration. The
page also has the required `table` and `sysId` parameters. You
can see this property and these parameters in the client script that serves as the
Submit button clicked event handler:  

    /**
     * @param {params} params
     * @param {api} params.api
     * @param {any} params.event
     * @param {any} params.imports
     * @param {ApiHelpers} params.helpers
     */
    function handler({
        api,
        event,
        helpers,
        imports
    }) {
        const input = {};

        input.targetTable = api.context.props.table;
        input.targetSysId = api.context.props.sysId;
        input.tabFocused = event.payload.tabFocused;
        input.signature = event.payload.signature;
        input.encodedSignature = event.payload.encodedSignature;
        input.saveSignature = true;

        const documentDetail = api.context.props.documentDetail;
        input.type = documentDetail.documentType;
        input.agreementText = documentDetail.acknowledgmentText;
        input.operation = input.targetTable == 'sn_hr_core_task' ? 'eSign' : 'signatureImage';

        if (input.type == 'html') {
            input.html = api.state.documentTemplate;
            const draftDoc = {
                'table': input.targetTable,
                'sysId': input.targetSysId,
                'html': input.html,
                'saveSignature': input.saveSignature
            };
            api.data.generate_html_draft_document.execute(draftDoc);
        }

        api.data.save_user_signature.execute(input);
    }


