Digital Signature component setup

task brazil Updated Sep 10, 2026 6 min read digital-signature-component-uib-setup.md
Raw file servicenow.com

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.

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.

    [Omitted image "digital-signature-label.png"] Alt text: Digital signature component in tree.

  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. The property fields appear in the Config tab in the setup panel on the right.

Parent Topic:UIB Setup Information

Digital signature component properties

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.

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

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

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.

Event descriptions

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

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
### HR Agent Workspace digital signature

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:

JavaScript
/** * @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);}
Search documentation
Search document titles and file paths on the brazil branch