dharmraj | Posts: 6

Multiple signature fields showing as one

0 votes
Hie, I am adding fields to pdf using approval(in json format). It is working fine for every type of fields(TEXTFIELD, CHECKBOX) except I can only see a single SIGNATURE capturing field even if I've added two/three of them inside json. Am I missing something ? Example json is :

    data['documents'][0]['approvals'].append({
                "role":"Rep",
                "signed":None,
                "accepted":None,
                "data":None,
                "fields":[{
                    "page":2,
                    "subtype":"CAPTURE",
                    "width":282,
                    "binding":None,
                    "extract":False,
                    "extractAnchor":None,
                    "left":488,
                    "top":80,
                    "validation":None,
                    "height":23,
                    "data":None,
                    "type":"SIGNATURE",
                    "value":""
                },
                {
                    "page":3,
                    "subtype":"CAPTURE",
                    "width":282,
                    "binding":None,
                    "extract":False,
                    "extractAnchor":None,
                    "left":488,
                    "top":80,
                    "validation":None,
                    "height":23,
                    "data":None,
                    "type":"SIGNATURE",
                    "value":""
                }],
                "name":""
    })
Kindly reply ASAP. Thanks.

Approved Answer
harishaidary | Posts: 1812

Reply to: Multiple signature fields showing as one

1 votes
Can you try setting your "approvals" object this way:
{
  "approvals": [
    {
      "role": "Rep",
      "signed": null,
      "accepted": null,
      "data": null,
      "fields": [
        {
          "page": 2,
          "subtype": "CAPTURE",
          "width": 282,
          "binding": null,
          "extract": false,
          "extractAnchor": null,
          "left": 488,
          "top": 80,
          "validation": null,
          "height": 23,
          "data": null,
          "type": "SIGNATURE",
          "value": ""
        }
      ],
      "name": ""
    },
    {
      "role": "Rep",
      "signed": null,
      "accepted": null,
      "data": null,
      "fields": [
        {
          "page": 3,
          "subtype": "CAPTURE",
          "width": 282,
          "binding": null,
          "extract": false,
          "extractAnchor": null,
          "left": 488,
          "top": 80,
          "validation": null,
          "height": 23,
          "data": null,
          "type": "SIGNATURE",
          "value": ""
        }
      ],
      "name": ""
    }
  ]
}
Our API convention allows only one signature type (i.e. "type": "SIGNATURE") per role in the approvals object. Therefore, if you are looking to add more signature fields, you'll have to follow the convention shown above. Let me know if this works for you.

mwilliams | Posts: 957

Reply to: Multiple signature fields showing as one

0 votes
I have split your question off to a new topic and moved it to the REST API forum. Please be sure to post your questions in the proper forum. Thank you! :)

Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off