Docusign会自动填充到带有数据验证的选项卡 [英] Docusign auto populate to tabs with data validation not working
问题描述
我正在使用docusign-php-client,已经在Dosusign网站上设置了模板和标签。
I'm using docusign-php-client, I have set up the template and the tabs on Dosusign website.
在模板中,我有一个名为 fee_a的文本选项卡,而我尝试自动填充的数据为 20:
In the template, I have a Text tab called "fee_a", and the data I was trying to autofill is "20":
-
当制表符验证设置为数字时,数据将无法自动填充;
when tab validation is set to "Numbers", the data is not able to get auto-populated;
设置为无时,数据可以毫无问题地进入表单。
when set to "None", data is able to get through to the form with no problem.
我必须对模板中的该选项卡使用验证,因为有一个公式选项卡需要使用它。
I have to use validation for this tab in the template, because there is a formula tab need to use it.
这是我的php代码,用于向选项卡填充值:
Here is my php code to populate value to the tab:
$DataArr["fee_a"] = "20";
$tab_hld = new DocuSign\eSign\Model\Text();
/* also tried
$tab_hld = new DocuSign\eSign\Model\Number();
got same result */
$tab_hld->setTabLabel("\\*fee_a");
$tab_hld->setValue($DataArr["fee_a"]);
我在做什么错?
推荐答案
我已经弄清楚了。
对于具有相同问题的用户,必须对带有数字验证的选项卡使用setNumberTabs(而不是setTextTabs)功能。
For those who has the same issue, you will have to use setNumberTabs(instead of setTextTabs) function for those tabs with "Number" validation.
$tabs->setNumberTabs(array($tab_a, $tab_hld));
这篇关于Docusign会自动填充到带有数据验证的选项卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!