2017-06-27 114 views
0

我想向我的DocuSign文档添加邮编列表,但它似乎是停止显示任何选项卡。唯一的其他选项卡是GitHub上PHP SDK中显示的setSignHereTabs选项卡。自定义选项卡不工作

// add postcode tab 
$postcodeTab = new DocuSign\eSign\Model\Text(); 
$postcodeTab->setDocumentId = ("1"); 
$postcodeTab->setRecipientId = ("1"); 
$postcodeTab->setPageNumber = ("1"); 
$postcodeTab->setName = ("postcodes"); 
$postcodeTab->setTabLabel = ("ReadOnlyDataField"); 
$postcodeTab->setValue = ($postcodes); 
$postcodeTab->setLocked = ("true"); 
$postcodeTab->setXPosition = ("100"); 
$postcodeTab->setYPosition = ("100"); 
// add the postcode tab to the envelope's list of tabs 
$tabs = new DocuSign\eSign\Model\Tabs(); 
$tabs->setTextTabs(array($postcodeTab)); 

我通过链接使用REST API文档和“数据域”部分下作为指导:

https://www.docusign.com/developer-center/explore/features/stick-etabs

没有错误显示在Apache的错误日志。任何帮助,将不胜感激。

GitHub的链接

https://github.com/docusign/docusign-php-client

REST API文档

https://docs.docusign.com/esign/

+0

这可能是他们的支持团队回答的问题。另外,为什么你用多余的括号'('和')'来包围你的字符串? – FrankerZ

+0

我只是保持在这里显示的内容: https://github.com/docusign/docusign-php-client/blob/master/test/UnitTests.php – Cozmoz

+0

@Cozmoz .. [DocuSign PHP客户端](https://github.com/docusign/docusign-php-client)使用Rest Api。 –

回答

3

你应该访问的功能,而不是将其设置:

$postcodeTab->setDocumentId = ("1") 

应该是:

$postcodeTab->setDocumentId("1") 

setDocumentId是在实例DocuSign\eSign\Model\Text一个功能。当你把一个等号,setDocumentId被覆盖,只是成为一个“1”字符串,它本质上什么都不做。您必须更新每个引用,并在它之前删除等号,以便实际调用每个将各个字段设置为实例的函数。

+0

谢谢,已经奏效,但现在签名框没有显示。 – Cozmoz

+0

这是另一个问题,另一个问题。编辑您的原始问题,并包含更多信息,并在当前发布的问题中发布另一个问题 – FrankerZ