Docusign API - 无法使用验证预填充字段(数字掩码)

Docusign API - Unable to pre-fill fields with validation (Number mask)

使用 PHP/curl 成功将信封发送到 "envelopes" URI,但经过验证的字段不会从请求中收到新值。

我有两个文本字段,一个有 "Text" 掩码,另一个有 "Number" 掩码(新 DocuSign 中的 "validation")。前者的初始值为"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 Tab Information for a Recipient" GET request,发现如果应用 "Number" 掩码,文本选项卡会变成数字选项卡,所以我将它移到了 "numberTabs" 部分,现在值正在更换。

"textTabs"    => array(
    array(
        "tabLabel"  => "\*l_text",
        "value"     => "WXYZ"
    )
),
"numberTabs"    => array(
    array(
        "tabLabel"  => "\*l_contract_number",
        "value"     => "67890"
    )
)