3

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

4

2 回答 2

2

使字段只读并用值预填充字段。

首先,我们必须在创建临时文档之前自定义 PDF 模板。mergeFieldInfo创建临时文档后,我们可以使用创建小部件 API设置字段值。

  1. 使用 Adob​​e Sign 自定义我们的 pdf 表单域- 在 Acrobat 中创建表单

  2. 使用文本标签Adob​​e Sign 文本标签预填充数据

于 2018-11-01T11:38:23.260 回答
1

这是我的解决方案

  • 您可以在 Adob​​e Sign 中使用有意义的字段名称创建 Web 表单/小部件,并在 url 中预填充这些字段值作为参数
  • 脚步
    • 在字段属性中,选中Read onlyDefault value may come from url复选框,请参阅此屏幕截图https://i.stack.imgur.com/aqSqs.png
      • 注意:字段类型应该是Text Input
    • 保存网络表单,您将获得小部件 url
    • 假设您的网络表单网址如下所示
https://secure.in1.adobesign.com/public/esignWidget?wid=CBF2s*
  • 添加你的参数
    • 通过在 Web 表单 URL 的末尾添加井号(井号、#)符号来标识参数的开头。
    • 然后以 {field_name}={value} 格式添加参数 Example URL with one parameter
https://secure.na1.echosign.com/public/esignWidget?wid=CBF2s*#Branch_Office=San Jose #621
  • 通过在字段值之间插入与号 (&) 来添加多个值。带有两个参数的示例 URL
https://secure.na1.echosign.com/public/esignWidget?wid=CBF2s*#Branch_Office=San Jose #621&Emp_ID=429939
  • 将所有 field=value 对添加到 URL 后,复制完整的字符串并将其粘贴到浏览器中,Web 表单将呈现填充的字段

检查官方文档以供参考: https ://helpx.adobe.com/in/sign/using/web-forms.html

于 2021-03-23T06:02:57.253 回答