Docusign API-锁定字段

时间:2018-11-02 18:31:57

标签: docusignapi docusigncompositetmplts

我正在使用Docusign API创建InlineTemplate,但是只能让第一个签名者填写任何字段。

其余所有签名者都需要锁定所有字段。有没有简单的方法可以做到这一点?

我尝试将其他Signers上的signer.templateLocked字段设置为true,但他们仍然可以编辑字段。

在TextTab上设置locked属性会将所有人锁定在该元素之外,因此我对如何完成此操作感到迷惑。

我尝试将相同的字段添加到所有签名者,不仅是在signer.tab部分中,还为这些元素分配了接收者ID,但这为我提供了3个字段,所有签名者彼此叠加。

我认为这应该是很平常的事情,但是觉得我只是想念一些东西。

这是对应的json:

{
"emailSubject": " ",
"status": "sent",
"enableWetSign": "true",
"compositeTemplates": [{
        "inlineTemplates": [{
                "recipients": {
                    "editors": [],
                    "agents": [],
                    "signers": [{
                            "tabs": {
                                "companyTabs": [],
                                "titleTabs": [],
                                "checkboxTabs": [],
                                "textTabs": [{
                                        "width": "136",
                                        "tabLabel": "OWNER_CONTRACT_NUMBER",
                                        "name": "Policy Number",
                                        "pageNumber": "1",
                                        "documentId": "1",
                                        "yPosition": "139",
                                        "xPosition": "439",
                                        "shared": "true",
                                        "required": "true",
                                        "recipientID": "2"
                                    }, {
                                        "width": "149",
                                        "tabLabel": "OWNER_LAST_NAME",
                                        "name": "Please enter your legal last name.",
                                        "pageNumber": "1",
                                        "documentId": "1",
                                        "yPosition": "139",
                                        "xPosition": "212",
                                        "shared": "true",
                                        "required": "true",
                                        "recipientID": "2"
                                    }
                                ],
                                "emailTabs": [],
                                "fullNameTabs": [],
                                "initialHereTabs": [],
                                "signHereTabs": [{
                                        "name": "Owner's Signature",
                                        "pageNumber": "2",
                                        "documentId": "1",
                                        "yPosition": "347",
                                        "xPosition": "90",
                                        "recipientID": "2"
                                    }
                                ],
                                "SignerAttachmentTabs": [],
                                "dateSignedTabs": [],
                                "radioGroupTabs": []
                            },
                            "routingOrder": "2",
                            "recipientId": "2",
                            "name": "Signer 1",
                            "email": "signer1@test.com",
                            "signerName": "SERVICE_REQ_OWNER"
                        }, {
                            "tabs": {
                                "companyTabs": [],
                                "titleTabs": [],
                                "checkboxTabs": [],
                                "textTabs": [],
                                "emailTabs": [],
                                "fullNameTabs": [],
                                "initialHereTabs": [],
                                "signHereTabs": [],
                                "SignerAttachmentTabs": [],
                                "dateSignedTabs": [],
                                "radioGroupTabs": []
                            },
                            "routingOrder": "1",
                            "clientUserId": "internal-id",
                            "recipientId": "1",
                            "name": "Internal Agent",
                            "email": "noreply@test.com",
                            "signerName": "INTERNAL SIGNER"
                        }
                    ],
                    "certifiedDeliveries": [],
                    "carbonCopies": []
                },
                "sequence": "1"
            }
        ],
        "document": {
            "name": "test document (DOCUSIGN)",
            "documentId": "1"
        }
    }
],
"emailSettings": {
    "replyEmailAddressOverride": "no-reply@test.com",
    "replyEmailNameOverride": "Do Not Reply"
}

}

感谢您的帮助, -杰夫

1 个答案:

答案 0 :(得分:0)

要做的唯一方法是复制所有字段,并使它们对于内部签名者是可选的,对于外部签名者是有条件的。您基本上将具有条件-匹配的内部字段是否已填写。如果这样做-您不会显示条件标签。 有关条件标签的更多信息: https://support.docusign.com/en/guides/ndse-user-guide-conditional-fields