Skip to content

Commit c6f320a

Browse files
retrieve webforms heading from manifest (#180)
1 parent 4afc8c0 commit c6f320a

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

app/controllers/webforms/weg001_create_instance_controller.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ def create_web_form_instance
3535
web_forms = create_instance_service.list_web_forms
3636
results = create_instance_service.create_web_form_instance web_forms.items.first.id
3737

38+
additional_page = @example['AdditionalPage'].find { |p| p['Name'] == 'webforms_heading' }
39+
@webforms_heading = additional_page['ResultsPageText']
3840
@integration_key = Rails.application.config.integration_key
3941
@form_url = results.form_url
4042
@instance_token = results.instance_token

app/views/webforms/weg001_create_instance/web_form_embed.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<body>
88
<div id="app">
99
<div id="webform-customer-app-area">
10-
<h1 id="webforms-heading">Embedded Webform Example</h1>
10+
<h5 id="webforms-heading"><%= @webforms_heading %></h5>
1111
<div id="docusign" class="webform-iframe-container">
1212
<p>Web Form will render here</p>
1313
</div>

0 commit comments

Comments
 (0)