Reputation: 347
I am using the PHP library provided by DocuSign within my application.
I would like to know how to create a text field that is NOT required to be filled in by the user.
Here's a snippet of what I'm doing.
$text = new \DocuSign\eSign\Model\SignHere();
$text->setAnchorString("Name");
$text->setAnchorXOffset("100");
$text->setAnchorYOffset("-20");
$text->setTabLabel("Name");
$text->setName("Name");
$text_tabs[] = $text;
$tabs = new DocuSign\eSign\Model\Tabs();
$tabs->setTextTabs($text_tabs);
I want this field to be optional but it's always required when trying to complete the signing process.
Any help would be appreciated!
Upvotes: 1
Views: 220
Reputation: 13480
I believe you just need to set the optional property of the text tab to true.
$text->setOptional("true");
(8/17/16: Updated answer to reference the optional property -- instead of the required property.)
Upvotes: 2