user982124
user982124

Reputation: 4622

DocuSign API - Set Size of Text Tab Input

I'm generating an envelope via the DocuSign API which includes 2 text tabs - these are appearing successfully, but the size of the text input is very small to start with. Here's a screenshot:

enter image description here

Is there a way I can make this wider to start with, preferably the same width as the line that it appears on? Here's the JSON for the text tab that I'm generating currently:

    "textTabs" : 
    [
        {
            "anchorIgnoreIfNotPresent" : false,
            "anchorString" : "/SigName1/",
            "anchorUnits" : "pixels",
            "anchorXOffset" : "0",
            "anchorYOffset" : "0",
            "documentId" : "1",
            "locked" : "false",
            "name" : "Your Full Name",
            "pageNumber" : "",
            "tabLabel" : "Your Full Name",
            "value" : ""
        },

Upvotes: 1

Views: 1144

Answers (2)

Geary Marks
Geary Marks

Reputation: 11

you can use width

  "textTabs": [
    {
      "anchorString": "/notes/",
      "conditionalParentValue": "yyy",
      "conditionalParentLabel": "reviewStatus",
      "required": "false",
      "recipientId": "1",
      "name": "No Text",
      "tabLabel": "No Text",
      "font": "Calibri",
      "fontSize": "Size11",
      "width": "500",
      "height": "50"      
    },
    {
      "anchorString": "/notes/",
      "conditionalParentLabel": "reviewStatus",
      "conditionalParentValue": "xxx",
      "name": "Potential Text",
      "required": "true",
      "recipientId": "1",
      "tabLabel": "Potential Text",
      "width": "500",
      "height": "50"      
    }
  ]

Upvotes: 1

Inbar Gazit
Inbar Gazit

Reputation: 14050

Try this:

"textTabs" : 
[
    {
        "anchorIgnoreIfNotPresent" : false,
        "anchorString" : "/SigName1/",
        "anchorUnits" : "pixels",
        "anchorXOffset" : "0",
        "anchorYOffset" : "0",
        "width" : "176",
        "height": "125",
        "documentId" : "1",
        "locked" : "false",
        "name" : "Your Full Name",
        "pageNumber" : "",
        "tabLabel" : "Your Full Name",
        "value" : ""
    },

Upvotes: 2

Related Questions