You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

DocuSign API:如何设置带提示文本的可编辑文本签签栏?

如何在DocuSign文本框中设置可编辑的占位提示文本?

我需要在“Charterer full name:”附近添加一个文本框供签署者填写,客户要求显示“name here”这类占位提示文本,但如果在发送信封时设置value字段,签署者就无法修改该文本了。请问有什么解决方法?

原代码:

"textTabs": [{
  "tabLabel": "Name",
  "value": "name here",
  "anchorString": "Charterer full name:",
  "anchorXOffset": "1.2",
  "anchorYOffset": "-0.1",
  "anchorIgnoreIfNotPresent": "false",
  "anchorUnits": "inches"
}]

解决方法很直接:不要用value字段,改用DocuSign提供的placeholder属性:

  • placeholder是专门用于设置文本框占位提示的参数,显示为灰色的提示文本,签署者可以直接输入内容覆盖,不会锁定文本框。
  • 修改后的代码如下:
"textTabs": [{
  "tabLabel": "Name",
  "placeholder": "name here",
  "anchorString": "Charterer full name:",
  "anchorXOffset": "1.2",
  "anchorYOffset": "-0.1",
  "anchorIgnoreIfNotPresent": "false",
  "anchorUnits": "inches"
}]

这样设置后,签署者能看到“name here”的提示文字,同时可以自由输入自己的姓名,完全符合需求。

内容的提问来源于stack exchange,提问作者ViDev

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.19 07:42:43