@@ -30,11 +30,13 @@ public static WebFormSummaryList getFormsByName(
30
30
ApiClient apiClient ,
31
31
String userAccessToken ,
32
32
String name ) throws ApiException {
33
+ //ds-snippet-start:WebForms2Step3
33
34
FormManagementApi formManagementApi = new FormManagementApi (apiClient );
34
35
var option = formManagementApi .new ListFormsOptions ();
35
36
option .setSearch (name );
36
37
37
38
return formManagementApi .listForms (userAccessToken , option );
39
+ //ds-snippet-end:WebForms2Step3
38
40
}
39
41
40
42
public static void addTemplateIdToForm (String fileName , String templateId ) {
@@ -59,6 +61,7 @@ public static WebFormInstance createInstance(
59
61
String formId ,
60
62
String signerEmail ,
61
63
String signerName ) throws ApiException {
64
+ //ds-snippet-start:WebForms2Step4
62
65
WebFormValues formValues = new WebFormValues ();
63
66
formValues .putAll (Map .of (
64
67
"PhoneNumber" , "555-555-5555" ,
@@ -75,8 +78,11 @@ public static WebFormInstance createInstance(
75
78
.sendOption (SendOption .NOW )
76
79
.formValues (formValues )
77
80
.recipients (List .of (recipient ));
81
+ //ds-snippet-end:WebForms2Step4
78
82
83
+ //ds-snippet-start:WebForms2Step5
79
84
return new FormInstanceManagementApi (apiClient ).createInstance (accountId , formId , options );
85
+ //ds-snippet-end:WebForms2Step5
80
86
}
81
87
82
88
public static EnvelopeTemplate prepareEnvelopeTemplate (String templateName , String documentPdf ) throws IOException {
0 commit comments