Skip to main content
Question

How to add and highlight signature box in signed document using code

  • December 5, 2024
  • 0 replies
  • 13 views

I am trying to create a Box sign request and want to highlight the signature box in the document where the user needs to add their signature. In the Box Sign portal, there is an option to drag and drop the signature and other fields, which places the signature box at the desired position in the document. I want to replicate this functionality using code. However, when I tried adding the inputs attribute under signers, it didn’t work as expected.

Below is my json request body.
{
  "email_message": "Hello! Please sign the document below",
  "email_subject": "Sign Request from UserName",
  "parent_folder": {
    "id": "2895123232312",
    "type": "folder"
  },
  "signers": [
    {
      "email": "<useremail>",
      "role": "signer",
     "order": 1,
      "inputs": [
        {
          "type": "signature",
          "x": 100,
          "y": 150,
          "page_index": 0,
          "width": 150,
          "height": 50
        }
      ]
    }
  ],
  "source_files": [
    {
      "id": "1714359484288",
      "type": "file"
    }
  ]
}

0 replies

Be the first to reply!

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings