如何使用日期掩码预填充数据标记

时间:2014-07-22 21:04:19

标签: docusignapi

我正在使用RES API创建一个信封,并在文档上有一个标记来捕获日期(不是签名日期,另一个是收件人提供的日期)。当字段上的掩码为Text时,我可以成功预先填充此值,但是当我将其切换为Date时,它是空白的。 " DOBField"是下面标签的标签。谁知道我在这里做错了什么?

{
    "accountId": "xxxxxx",
    "emailSubject": "DocuSign API - Embedded Signing Example",
    "compositeTemplates": [
        {
            "serverTemplates": [
                {
                    "sequence": 1,
                    "templateId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx"
                }
            ],
            "inlineTemplates": [
                {
                    "sequence": 1,
                    "recipients": {
                        "signers": [
                            {
                                "email": "123@456.com",
                                "name": "Rick James",
                                "clientUserId": "3",
                                "recipientId": 0,
                                "roleName": "Signer"
                            }
                        ]
                    }
                }
            ]
        },
        {
            "serverTemplates": [
                {
                    "sequence": 1,
                    "templateId": "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
                }
            ],
            "inlineTemplates": [
                {
                    "sequence": 1,
                    "recipients": {
                        "signers": [
                            {
                                "email": "123@456.com",
                                "name": "Rick James",
                                "clientUserId": "3",
                                "recipientId": 0,
                                "roleName": "Signer",
                                "tabs": {
                                    "textTabs": [
                                        {
                                            "tabLabel": "DOBField",
                                            "value": "12/24/1976"
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                }
            ]
        }
    ],
    "enableWetSign": false,
    "status": "sent"
}

enter image description here

1 个答案:

答案 0 :(得分:1)

如果您已指定"日期"对于该领域,它不再是 textTab - 它现在是 dateTab 。因此,请尝试在API请求中将textTabs更改为dateTabs。即,请求的标签部分将如下所示:

"tabs": {
    "dateTabs": [
        {
            "tabLabel": "DOBField",
            "value": "12/24/1976"
        }
    ]
}