@@ -30,11 +30,13 @@ public static WebFormSummaryList getFormsByName(
3030 ApiClient apiClient ,
3131 String userAccessToken ,
3232 String name ) throws ApiException {
33+ //ds-snippet-start:WebForms2Step3
3334 FormManagementApi formManagementApi = new FormManagementApi (apiClient );
3435 var option = formManagementApi .new ListFormsOptions ();
3536 option .setSearch (name );
3637
3738 return formManagementApi .listForms (userAccessToken , option );
39+ //ds-snippet-end:WebForms2Step3
3840 }
3941
4042 public static void addTemplateIdToForm (String fileName , String templateId ) {
@@ -59,6 +61,7 @@ public static WebFormInstance createInstance(
5961 String formId ,
6062 String signerEmail ,
6163 String signerName ) throws ApiException {
64+ //ds-snippet-start:WebForms2Step4
6265 WebFormValues formValues = new WebFormValues ();
6366 formValues .putAll (Map .of (
6467 "PhoneNumber" , "555-555-5555" ,
@@ -75,8 +78,11 @@ public static WebFormInstance createInstance(
7578 .sendOption (SendOption .NOW )
7679 .formValues (formValues )
7780 .recipients (List .of (recipient ));
81+ //ds-snippet-end:WebForms2Step4
7882
83+ //ds-snippet-start:WebForms2Step5
7984 return new FormInstanceManagementApi (apiClient ).createInstance (accountId , formId , options );
85+ //ds-snippet-end:WebForms2Step5
8086 }
8187
8288 public static EnvelopeTemplate prepareEnvelopeTemplate (String templateName , String documentPdf ) throws IOException {
0 commit comments