Adobe sign API - create a widget with pre-filling details

百般思念 提交于 2020-07-09 08:19:33

问题


I'm trying to implement the functionality, where users need to sign documents within the application process instead of sending a document to user for eSignature.

I used Adobe Sign API(using trail account) to achieve this and was able to create a widget and get the embedded code to display the document in the HTML page successfully.

But, while creating the widget I wanted to prefill the form fields and set field as read-only(first_name, address etc) in the document. I'm not able to access/customize form filed.

steps, I followed to achieve this.

  • Create transientDocument using Form(4506_T). POST - /transientDocuments
  • Create a widget using transientDocumentId. POST - /widgets
  • Get embeddedCode in the widget views call response. POST /widgets/{widgetId}/views

But there is something called mergeFieldInfo in create widget model in (API- v5). It'll help to set a default value but there is no attribute to set field as read-only.

I have searched about this in Adobe forums but cannot find the solution.

*API version I have tried- V6


回答1:


To make field read-only and prefilling fields with value.

First, we have to customize our PDF template before creating transient document. After creating transient document, We can set field value using mergeFieldInfo in create widget API.

  1. Customize our pdf form field using Adobe Sign - Creating Forms within Acrobat

  2. To prefill data using the text tag Adobe Sign text tag



来源:https://stackoverflow.com/questions/52291229/adobe-sign-api-create-a-widget-with-pre-filling-details

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!