gpt4 book ai didi

docusignapi - DocuSign - 使用标签进行数据验证

转载 作者:行者123 更新时间:2023-12-01 13:38:56 28 4
gpt4 key购买 nike

我需要使用带有数据验证的自定义标签创建 DocuSign 信封。收件人在自定义标签中输入的值需要进行验证,以便收件人输入的值不会超过特定值。

我尝试使用正则表达式,但它们只验证特定范围内输入的数字。

DocuSign 是否提供一种方法来验证输入的数字是否小于特定数字?

最佳答案

您可以使用 docusign calculated fields用于验证。

You can use mathematical signs for inequality, such as greater than or less than, to construct formulas containing an evaluation of the result. For example, if you have a group of fields that must add up to less than or equal to 100, you can use a formula to evaluate the total, and then show a conditional note with a warning to correct the values.

[Field A] + [Field B] + [Field C] <= 100

在您的情况下,由于您希望输入的数字小于特定数字,因此您可以在以下情况下显示验证消息[字段 A] > {你的值(value)}

编辑:PostEnvelope 是这样的请求看起来像。请注意三种标签类型。在下面的示例中,当 numberTab(Amount) 大于 100 时,公式选项卡将评估为 1。这将触发条件注释以显示验证消息。

{
"recipients": {
"signers": [
{
"email": "johnsmith@xyz.com",
"name": "john smith",
"recipientId": 1,
"tabs":
{
"numberTabs": [
{
"name": "Amount Tab",
"required": "true",
"tabLabel": "Amount",
"documentId": "1",
"recipientId": "1",
"pageNumber": "1",
"xPosition": "70",
"yPosition": "119",
"width": "42",
"height": "11",
}
],
"noteTabs": [
{
"value": "Amount cannot be more than hundred",
"name": "Note to recipient",
"tabLabel": "Validation Message",
"fontColor": "brightred",
"documentId": "1",
"recipientId": "1",
"pageNumber": "1",
"xPosition": "132",
"yPosition": "112",
"width": "231",
"height": "20",
"conditionalParentLabel": "NumberValidation",
"conditionalParentValue": "1",
"tabType": "note"
}
],
"formulaTabs": [
{
"formula": "[Amount] > 100",
"roundDecimalPlaces": "0",
"name": "Formula Tab",
"locked": "true",
"concealValueOnDocument": "true",
"tabLabel": "NumberValidation",
"documentId": "1",
"recipientId": "1",
"pageNumber": "1",
"tabType": "formula"
}
]
}
}
]
},
"documents": [
{
"documentId": "1",
"name": "doc.pdf",
"fileExtension" : "pdf",
"documentBase64": "{Removed}"
}
],
"emailSubject": "Testing Validation",
"status": "sent"
}

关于docusignapi - DocuSign - 使用标签进行数据验证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41983280/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com