Redirect to specific page after signing the document

When using BoldSign, you have the ability to redirect users to a specific page after they have successfully signed a document in your application.

Follow these steps to redirect to a specific page after signing the document

Send the document

Start by sending the document to the signer. This can be achieved by sending the document without email notifications. For detailed instructions on how to send a document without email notifications, refer to the article Send document by disabling email notifications.

To enable redirection, you need to embed the signing link within your application. This link will be used to initiate the signing process. Your application's interface should gather necessary information from the user, such as their email address (the signerEmail parameter).

Example code snippets to generate an embedded sign request

Code snippet

curl -X GET '{Your document Id}&' \ 
-H 'X-API-KEY: {use your API-KEY here}' 

var apiClient = new ApiClient("", "{use your API-KEY here}");
var documentClient = new DocumentClient(apiClient);
EmbeddedSigningLink embeddedSigningLink = await documentClient.GetEmbeddedSignLinkAsync("{Your document Id}", "", DateTime.Now.AddDays(30), "").ConfigureAwait(false);
string signLink = embeddedSigningLink.SignLink;
import requests

url = "{Your document Id}&"

headers = {
  'X-API-KEY': '{your API key}'

response = requests.request("GET", url, headers=headers, data=payload)
const axios = require('axios'); 
const response = await axios.get('{Your document Id}&', { 
    headers: { 
        'X-API-KEY': '{use your API-KEY here}' 

In the above code, replace the signerEmail placeholder with the actual input value obtained from your application's UI. However, parameters like documentId, redirectUrl, and signLinkValidTill should be predefined in your application. Replace redirectUrl with the URL of a page that you want to redirect the signer.

It is crucial to verify the signer's identity before granting access to the signing URL to ensure the legality of the eSignature.

By executing the provided code, you will generate an embed link that allows the signer to access and sign the document.

After obtaining the embed link, integrate it into an iFrame element within your application. By doing so, users can sign the document directly within your application's interface. Once the signing process is completed, the user will be automatically redirected to the specified page. This seamless integration streamlines the signing process, enhances user experience, and promotes efficient document management within your application.