Skip to content

Commit 363a45b

Browse files
committed
2 parents dfb1aa2 + 43dc231 commit 363a45b

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/Controllers/Examples/WebForms/EG001CreateAndEmbedForm.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ protected function createController(): void
104104
$GLOBALS['twig']->display(
105105
self::WEB_FORM . '.html',
106106
[
107+
'embeddedBy' => $this->codeExampleText["AdditionalPage"][2]["ResultsPageText"],
107108
'instance_token ' => $webFormInstance["instance_token"],
108109
'url' => $webFormInstance["form_url"],
109110
'integration_key' => $GLOBALS['DS_CONFIG']['ds_client_id'],

src/Services/Examples/Monitor/GetMonitoringDataService.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ public static function getMonitoringData(MonitorApiClientService $clientService)
2323
try {
2424
// Get monitoring data
2525
$datasetApi = new DataSetApi($apiClient);
26-
27-
$cursor = "";
26+
$cursorDate = new \DateTime();
27+
$cursorDate->modify('-1 year');
28+
$cursor = $cursorDate->format('Y-m-d') . "T00:00:00Z";
2829
$complete = false;
2930
$options = new GetStreamOptions();
3031
$options->setLimit(2000);

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">{{ embeddedBy | raw }}</h5>
1414
<div id="docusign" class="webform-iframe-container">
1515
<p>Web Form will render here</p>
1616
</div>

0 commit comments

Comments
 (0)