1+ <% include ../ ../ partials/ head %>
2+
3+ <h4 >17. Set template tab values</h4 >
4+ <p >This example sets the value of a template's tabs. It includes setting
5+ radio button and checkbox tabs.</p >
6+ <p >The example also sets custom metadata in the envelope via the envelope custom fields feature.</p >
7+
8+ <% if (showDoc) { % >
9+ < p>< a target= ' _blank' href= ' <%= documentation %>' > Documentation< / a> about this example.< / p>
10+ < % } %>
11+
12+ <p >API method used:
13+ <a target =' _blank' href =" https://developers.docusign.com/esign-rest-api/reference/Envelopes/Envelopes/create" >Envelopes::create</a >.
14+ </p >
15+ <p >
16+ View source file <a target =" _blank" href =" <%= sourceUrl %>" ><%= sourceFile %> </a > on GitHub.
17+ </p >
18+
19+ <% if (templateOk) { % >
20+ < form class = " eg" action= " " method= " post" data- busy= " form" >
21+ < div class = " form-group" >
22+ < label for = " signer_email" > Signer Email< / label>
23+ < input type= " email" class = " form-control" id= " signer_email" name= " signer_email"
24+ aria- describedby= " emailHelp" placeholder= " pat@example.com" required
25+ value= " {{ signer_email }}" >
26+ < small id= " emailHelp" class = " form-text text-muted" > We' ll never share your email with anyone else.</small>
27+ </div>
28+ <div class="form-group">
29+ <label for="signer_name">Signer Name</label>
30+ <input type="text" class="form-control" id="signer_name" placeholder="Pat Johnson" name="signer_name"
31+ value="{{ signer_name }}" required>
32+ </div>
33+ <div class="form-group">
34+ <label for="cc_email">CC Email</label>
35+ <input type="email" class="form-control" id="cc_email" name="cc_email"
36+ aria-describedby="emailHelp" placeholder="pat@example.com" required
37+ <small id="emailHelp" class="form-text text-muted">The email for the cc recipient must be different from the signer' s email.< / small>
38+ < / div>
39+ < div class = " form-group" >
40+ < label for = " cc_name" > CC Name< / label>
41+ < input type= " text" class = " form-control" id= " cc_name" placeholder= " Pat Johnson" name= " cc_name"
42+ required>
43+ < / div>
44+ < input type= " hidden" name= " csrf_token" value= " {{ csrf_token() }}" / >
45+ < button type= " submit" class = " btn btn-primary" > Submit< / button>
46+ < / form>
47+
48+ < % } else { % >
49+ < p> Problem: please first create the template by using < a href= " {{ app_url ~ 'index.php?page=' }}eg008" > example 8. < / a> < br/ >
50+ Thank you.< / p>
51+
52+ < form class = " eg" action= " {{ app_url ~ 'index.php' }}" method= " get" >
53+ < input type= " hidden" name= " page" value= " eg008" / >
54+ < button type= " submit" class = " btn btn-primary" > Continue< / button>
55+ < / form>
56+ < % } %>
57+
58+ <% include ../ ../ partials/ foot %>
59+
0 commit comments