使用PHP/ccurl成功地将信封发送到"信封"URI,但经过验证的字段不会从请求中接收到新值。
我有两个文本字段,一个有"文本"掩码,另一个有一个"数字"掩码(NEW DocuSign中的"验证")。前者的初始值为"ABCD",后者的初始值是"12345"。我想将前者的值更改为"WXYZ",将后者更改为"67890"。
以下是PHP数组的相关部分:
"textTabs" => array(
array(
"tabLabel" => "''*l_text",
"value" => "WXYZ"
),
array(
"tabLabel" => "''*l_contract_number",
"value" => "67890"
)
)
通过JSON_encode函数转换为JSON:
"textTabs":[{"tabLabel":"''*l_text","value":"WXYZ"},{"tabLabel":"''*l_contract_number","value":"67890"}]
当文档被发送用于签名时,我看到l_text
字段的值现在是"WXYZ",而l_contract_number
的值仍然是"12345"。
我执行了一个"获取收件人的选项卡信息"Get请求,发现如果应用"数字"掩码,"文本"选项卡将变成"数字"选项卡,所以我将其移动到"数字选项卡"部分,现在该值将被替换。
"textTabs" => array(
array(
"tabLabel" => "''*l_text",
"value" => "WXYZ"
)
),
"numberTabs" => array(
array(
"tabLabel" => "''*l_contract_number",
"value" => "67890"
)
)