Skip to content

Commit 8c3ed87

Browse files
author
Raileen Del Rosario
committed
readjusting tab positions and editing text for web forms example
1 parent 3d020bb commit 8c3ed87

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

src/Services/Examples/WebForms/CreateAndEmbedFormService.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -211,50 +211,50 @@ public static function makeTemplateRequest(
211211
'document_id' => '1',
212212
'anchor_string' => '/SMS/',
213213
'anchor_units' => 'pixels',
214-
'anchor_x_offset' => '20',
215-
'anchor_y_offset' => '10',
214+
'anchor_x_offset' => '0',
215+
'anchor_y_offset' => '0',
216216
'tab_label' => 'Yes'
217217
]);
218218
$text = new Text([
219219
'document_id' => "1",
220220
'tab_label' => "FullName",
221221
'anchor_string' => "/FullName/",
222222
'anchor_units' => "pixels",
223-
'anchor_x_offset' => "20",
224-
'anchor_y_offset' => "10"
223+
'anchor_x_offset' => "0",
224+
'anchor_y_offset' => "0"
225225
]);
226226
$text2 = new Text([
227227
'document_id' => "1",
228228
'tab_label' => "PhoneNumber",
229229
'anchor_string' => "/PhoneNumber/",
230230
'anchor_units' => "pixels",
231-
'anchor_x_offset' => "20",
232-
'anchor_y_offset' => "10"
231+
'anchor_x_offset' => "0",
232+
'anchor_y_offset' => "0"
233233
]);
234234
$text3 = new Text([
235235
'document_id' => "1",
236236
'tab_label' => "Company",
237237
'anchor_string' => "/Company/",
238238
'anchor_units' => "pixels",
239-
'anchor_x_offset' => "20",
240-
'anchor_y_offset' => "10"
239+
'anchor_x_offset' => "0",
240+
'anchor_y_offset' => "0"
241241
]);
242242
$text4 = new Text([
243243
'document_id' => "1",
244244
'tab_label' => "JobTitle",
245245
'anchor_string' => "/Title/",
246246
'anchor_units' => "pixels",
247-
'anchor_x_offset' => "20",
248-
'anchor_y_offset' => "10"
247+
'anchor_x_offset' => "0",
248+
'anchor_y_offset' => "0"
249249
]);
250250

251251
$dateSignedTabs = new DateSigned([
252252
'document_id' => "1",
253253
'tab_label' => "DateSigned",
254254
'anchor_string' => "/Date/",
255255
'anchor_units' => "pixels",
256-
'anchor_x_offset' => "20",
257-
'anchor_y_offset' => "10"
256+
'anchor_x_offset' => "0",
257+
'anchor_y_offset' => "0"
258258
]);
259259

260260
$signer->setTabs(new Tabs([
@@ -266,7 +266,7 @@ public static function makeTemplateRequest(
266266

267267
return new EnvelopeTemplate(
268268
[
269-
'description' => "Example template created via the API",
269+
'description' => "Example template created via the eSignature API",
270270
'name' => $template_name,
271271
'shared' => "false",
272272
'documents' => [$document],

templates/webforms/webForm.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<body>
1111
<div id="app">
1212
<div id="webform-customer-app-area">
13-
<h5 id="webforms-heading">The web form has been embedded below using the DocuSign.js library.</h5>
13+
<h5 id="webforms-heading">The web form has been embedded below using the Docusign JS library.</h5>
1414
<div id="docusign" class="webform-iframe-container">
1515
<p>Web Form will render here</p>
1616
</div>

0 commit comments

Comments
 (0)