Skip to content

Commit 5cd21e0

Browse files
authored
Merge pull request #161 from docusign/feature/webforms-heading
Changed text in Web Forms example
2 parents 9112d05 + 9513eca commit 5cd21e0

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

app/templates/webforms/eg001_web_form_embed.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<body>
1313
<div id="app">
1414
<div id="webform-customer-app-area">
15-
<h1 id="webforms-heading">Embedded web form example</h1>
15+
<h5 id="webforms-heading">{{ webforms_heading }}</h5>
1616
<div id="docusign" class="webform-iframe-container">
1717
<p>Web Form will render here</p>
1818
</div>

app/webforms/views/eg001_create_instance.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,16 @@ def create_web_form_instance():
5555
except Exception as error:
5656
return process_error(error)
5757

58+
example = get_example_by_number(session["manifest"], example_number, api)
59+
additional_page_data = next((p for p in example["AdditionalPage"] if p["Name"] == "webforms_heading"),
60+
None)
61+
5862
return render_template(
5963
"webforms/eg001_web_form_embed.html",
6064
form_url=results.form_url,
6165
instance_token=results.instance_token,
62-
integration_key=DS_CONFIG["ds_client_id"]
66+
integration_key=DS_CONFIG["ds_client_id"],
67+
webforms_heading=additional_page_data["ResultsPageText"]
6368
)
6469

6570

0 commit comments

Comments
 (0)