docusign模板自定义字段未填写 [英] docusign template custom field not being filled

查看:64
本文介绍了docusign模板自定义字段未填写的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图获取已添加到模板中的自定义字段,以使用在xml请求文档中发送的值来填充。我肯定这是一个明显的错误,但我只是没有看到它。我也看到这个问题又问了几次而没有答案。这是我的要求。我可以在文档上签名,但是非标准字段中的非填充字段。

I am trying to get the custom fields that I have added to my template to be filled with the values I am sending in the xml request document. I am positive it is an obvious mistake, but I am just not seeing it. I also see this question askd a couple other times without an answer. this is my request. I can sign the document, but non of the non standard fields are filled.

<envelopeDefinition xmlns="http://www.docusign.com/restapi">
    <status>sent</status>
    <emailSubject>Disclosuresave - Clue Authorization Form</emailSubject>
    <templateId>x</templateId>
    <templateRoles>
        <templateRole>
            <email>test@test.test</email>
            <name>test name</name>
            <roleName>Recipient</roleName>
            <clientUserId>####</clientUserId>
            <CustomFields>
                <CustomField>
                    <Name>Address</Name>
                    <Show>True</Show>
                    <Required>False</Required>
                    <Value>123 Ash St</Value>
                </CustomField>
                <CustomField>
                    <Name>City</Name>
                    <Show>True</Show>
                    <Required>False</Required>
                    <Value>Beverly Hills</Value>
                </CustomField>
            </CustomFields>
        </templateRole>
    </templateRoles>
</envelopeDefinition>


推荐答案

如果您要填写的字段是您放置在模板中文档上的数据字段,那么它们不是自定义字段,而是标签。如果是这种情况,则请求的标签部分应如下所示:

If the fields that you're trying to fill are data fields that you've placed on the documents within the Template, then these aren't "custom fields" -- they're "tabs". If that's your scenario, then the tabs portion of your request should look like this:

<tabs>
    <textTabs>
        <text>
            <name>Address</name>
            <value>123 Ash St</value>
        </text>
        <text>
            <name>City</name>
            <value>Beverly Hills</value>
        </text>
    </textTabs>
</tabs>

另外,请注意元素名称区分大小写(即名称而不是名称 ,值而不是值等)-并且,每个标签的 name 元素的值也区分大小写。例如,如果模板将标签标签定义为 City ,但您的API请求设置了 name = city ,则该API请求将不会填充信封中的该字段(因为 City != city )。

Also, do note that element names are case-sensitive (i.e., "name" not "Name", "value" not "Value", etc.) -- AND, the value of the name element for each tab is case-sensitive as well. For example, if the Template defines the tab label as City but your API request sets name = city, then the API request won't populate that field in the Envelope (because City != city).

此在线资源包含以供将来参考有关JSON和XML中所有REST API操作的请求/响应格式的详细信息: https://www.docusign。 net / restapi / help

For future reference, this online resource contains details about request/response formats for all REST API operations in both JSON and XML: https://www.docusign.net/restapi/help.

这篇关于docusign模板自定义字段未填写的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆