DocuSign:使用带有可选签名的条件字段

时间:2014-11-14 02:45:17

标签: c# .net docusignapi

我们正在开发一个最终用户需要进行嵌入式DocuSign的应用程序。该文档包含可选的签名选项卡和自定义选项卡文本框。只有在最终用户使用“SignHereOptional”选项卡进行签名时,我们才需要使文本框可见。为此,我们使用条件字段。

以下是我们为我们的应用程序使用的代码。但不知何故,我们无法达到预期的效果。

Tab parent = new Tab();
parent.DocumentID = "1";
parent.RecipientID = "1";
parent.PageNumber = "1";
parent.Type = TabTypeCode.SignHereOptional;
parent.CustomTabTypeSpecified = true;
parent.XPosition = "100";
parent.YPosition = "200";
parent.TabLabel = "CustomerSign";

Tab child = new Tab();
child.DocumentID = "1";
child.RecipientID = "1";
child.PageNumber = "1";
child.Type = TabTypeCode.Custom;
child.CustomTabType = CustomTabType.Text;
child.CustomTabTypeSpecified = true;
child.ConditionalParentLabel = "CustomerSign";
child.ConditionalParentValue = "Signed";
child.XPosition = "300";
child.YPosition = "400";

如果对此问题有任何解决方法,请告诉我们

提前致谢。

1 个答案:

答案 0 :(得分:0)

检查父标签的值时,您的逻辑是什么样的?对于可选的签名选项卡类型,您需要检查值" on"

REST API指南对 ConditionalParentValue 有以下描述:

Optional element. For conditional fields this is the Value of the parent tab that controls this tab’s visibility.

If the parent tab is a Checkbox, Radio button, Optional Signature, or Optional Initial use “on” as the value to show that the parent tab is active.