0

Is any who implemented Dropdownenter image description here

How can I implement it in Laravel? Like $service = new Text([....]); How can we implement Dropdown in DocuSign The dropdown class is not available in "composer require docusign/esign-client" package so how can I import dropdown class Thanks in advance for the guide or code

1 Answers1

1

This is called ListTab, so you need to look for List. In PHP it's called ModelList, you can find the code in https://github.com/docusign/docusign-esign-php-client/blob/master/src/Model/ModelList.php

So you add a ListTab to the Tabs object and that object is instantiated as a ModelList class.

Inbar Gazit
  • 12,566
  • 1
  • 16
  • 23
  • Thanks for responding, I am a bit confused about how to list items to my ModelList initializing. I've searched for further understanding but couldn't able to get any help from any of the documentation. – Manish Kumar Pathak May 05 '23 at 19:14
  • `$dropdown2 = new ModelList(['document_id' => '1', 'height' => "10", 'list_items' => '', 'list_selected_value' => null, 'list_selected_value_metadata' => '', 'page_number' => '1', 'required' => "true", 'tab_label_metadata' => '', 'tooltip' => 'Dropdown','value' => '','value_metadata' => null, 'width' => "130", 'width_metadata' => null,'x_position' => '194', 'x_position_metadata' => null,'y_position' => '71', 'y_position_metadata' => null]);` – Manish Kumar Pathak May 05 '23 at 19:14
  • `use DocuSign\eSign\Model\ModelList; use Docusign\eSign\Model\lineItems; use DocuSign\eSign\Model\ListItem; use DocuSign\eSign\Model\ListCustomField;` I have includes these classes – Manish Kumar Pathak May 05 '23 at 19:15
  • But still not get solutions can you please elaborate the things to clarify the thind – Manish Kumar Pathak May 05 '23 at 19:16
  • Please have a look on screenshot https://prnt.sc/dJChxCu78Ylt – Manish Kumar Pathak May 05 '23 at 19:17
  • what happens what you run this code? – Inbar Gazit May 05 '23 at 19:19
  • Is the screenshot what you want? or what the code does? – Inbar Gazit May 05 '23 at 19:19
  • Please have a look on screenshot https://prnt.sc/wZxzuWd4ubCI – Manish Kumar Pathak May 05 '23 at 19:34
  • I want like this https://prnt.sc/QylPf6QVEiLD – Manish Kumar Pathak May 05 '23 at 19:40
  • I just wanted to show a simple dropdown just like we used to do in html.  Dropdown will have 3 options for eg:  List Item 1 List Item 2 List Item 3 **When I run this code it doesn't do anything.** So in my eSign document user can select any on List Item. – Manish Kumar Pathak May 05 '23 at 19:42
  • In this code snippet, you would need to replace the following values with your own: ACCESS_TOKEN_HERE: This is the access token for your DocuSign API integration. ENVELOPE_ID_HERE: This is the ID of the envelope that you want to add the dropdown list to. RECIPIENT_ID_HERE: This is the ID of the recipient who will see the dropdown list in the envelope. Once you have replaced these values, you can save the code snippet to an HTML file and open it in your web browser to see the button that will add the dropdown list to your DocuSign document when clicked. – Manish Kumar Pathak May 05 '23 at 19:44
  • so, the code doesn't work at all? or it works but you don't see a dropdown? – Inbar Gazit May 05 '23 at 20:30
  • Let us [continue this discussion in chat](https://chat.stackoverflow.com/rooms/253504/discussion-between-manish-kumar-pathak-and-inbar-gazit). – Manish Kumar Pathak May 05 '23 at 20:55