• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

API default form fields issue

New Here ,
Jun 02, 2023 Jun 02, 2023

Copy link to clipboard

Copied

  1. In Swagger I do POST/transientDocuments and get transientDocumentId
  2. I use transientDocumentId in POST/agreements, I get agreementID
{
  "fileInfos": [
    {
      "transientDocumentId": "XXX"
    }
  ],
  "name": "XXX",
  "participantSetsInfo": [
    {
      "order": 1,
      "role": "SIGNER",
      "memberInfos": [
        {
          "email": "XXX"
        }
      ]
    }
  ],
  "signatureType": "ESIGN",
  "state": "AUTHORING"
}

3. I do PUT/agreements/XXX/formFields

{
  "fields": [
    {
      "locations": [
        {
          "pageNumber": 1,
          "top": 100,
          "left": 15,
          "width": 50,
          "height": 30
        }
      ],
      "inputType": "PDF_SIGNATURE",
      "contentType": "SIGNATURE",
      "name": "Field1",
      "required": "true",
      "visible": "true"
    },
    {
      "locations": [
        {
          "pageNumber": 1,
          "top": 150,
          "left": 15,
          "width": 50,
          "height": 30
        }
      ],
      "inputType": "TEXT_FIELD",
      "contentType": "SIGNATURE_DATE",
      "format": "DATE_DD_MM_YYYY",
      "name": "Field2",
      "required": "true",
      "visible": "true"
    }
  ]
}

 

PDF was sent, but my fields are not there. Default Signature&Email signature block is used.

 

However when I repeat steps 1,2,3 from above but starting with "state": "DRAFT" I can see with GET/agreements/XXX/formFields that my fields are there.

 

After moving to 

{
  "state": "IN_PROCESS"
}

my fields are not there, but default one is used again.

 

Why?

TOPICS
Adobe Sign forms

Views

307

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

New Here , Jun 07, 2023 Jun 07, 2023

Solved. So the thing is that you must provide assignee to your custom form fields. If you don't do that, default signature block is placed to the end of the document.

 

Assignee number is dynamic value so get it here GET /agreements/{agreementId}/members 

 

{
  "participantSets": [
    {
      "memberInfos": [
        {
          "id": "XXX",
          "email": "XXX",
          "self": false,
          "securityOption": {
            "authenticationMethod": "NONE"
          },
          "name": "XXX
...

Votes

Translate

Translate
New Here ,
Jun 07, 2023 Jun 07, 2023

Copy link to clipboard

Copied

LATEST

Solved. So the thing is that you must provide assignee to your custom form fields. If you don't do that, default signature block is placed to the end of the document.

 

Assignee number is dynamic value so get it here GET /agreements/{agreementId}/members 

 

{
  "participantSets": [
    {
      "memberInfos": [
        {
          "id": "XXX",
          "email": "XXX",
          "self": false,
          "securityOption": {
            "authenticationMethod": "NONE"
          },
          "name": "XXX",
          "company": "XXX",
          "status": "ACTIVE",
          "createdDate": "2023-06-06T10:52:32Z",
          "userId": "XXX"
        }
      ],
      "id": "THIS IS ASSIGNEE NUMBER",
      "role": "SIGNER",
      "status": "NOT_YET_VISIBLE",
      "order": 1
    }
  ],
  "senderInfo": {
    "participantId": "XXX",
    "email": "XXX",
    "company": "XXX",
    "name": "XXX",
    "self": true,
    "hidden": false,
    "status": "WAITING_FOR_AUTHORING",
    "createdDate": "2023-06-06T10:52:32Z",
    "userId": "XXX"
  }
}

 

Correct order of steps is:

1. POST/transientDocuments

2. POST/agreements

3. GET /agreements/{agreementId}/members

4. PUT/agreements/{agreementId}/formFields

{
  "fields": [
    {
      "locations": [
        {
          "pageNumber": 1,
          "top": 125,
          "left": 400,
          "width": 200,
          "height": 20
        }
      ],
      "inputType": "SIGNATURE",
      "contentType": "SIGNATURE",
      "name": "Field1",
      "required": "true",
      "assignee": "XXX"
    }

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines