Skip to content

Commit

Permalink
Include comments to payload message
Browse files Browse the repository at this point in the history
  • Loading branch information
britneywwc committed Sep 3, 2024
1 parent 3dc6b3e commit 9589c63
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
3 changes: 3 additions & 0 deletions static/js/src/dynamic-forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,9 @@ import { prepareInputFields } from "./prepare-form-inputs.js";
const contactModal = document.getElementById("contact-modal");
var message = "";
var commentsFromLead = document.querySelector("#Comments_from_lead__c");
if (commentsFromLead.value != "") {
message += commentsFromLead.value;
}
if (contactModal) {
var formFields = contactModal.querySelectorAll(".js-formfield");

Expand Down
21 changes: 9 additions & 12 deletions templates/shared/forms/interactive/kafka.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ <h3 class="p-heading--5">How should we get in touch?</h3>
</li>
<li class="p-list__item">
<label for="company">Company name:</label>
<input required id="company" name="company" maxlength="255" type="text">
<input required id="company" name="company" maxlength="255" type="text" />
</li>
<li class="p-list__item">
<label for="title">Job title:</label>
<input required id="title" name="title" maxlength="255" type="text">
<input required id="title" name="title" maxlength="255" type="text" />
</li>
<li class="p-list__item">
<label for="email">Work email:</label>
Expand All @@ -40,7 +40,7 @@ <h3 class="p-heading--5">How should we get in touch?</h3>
</li>
<li class="p-list__item">
<label class="p-checkbox">
<input class="p-checkbox__input" value="yes" aria-labelledby="canonicalUpdatesOptIn" name="canonicalUpdatesOptIn" type="checkbox">
<input class="p-checkbox__input" value="yes" aria-labelledby="canonicalUpdatesOptIn" name="canonicalUpdatesOptIn" type="checkbox" />
<span class="p-checkbox__label" id="canonicalUpdatesOptIn">I agree to receive information about Canonical's products and services.</span>
</label>
</li>
Expand Down Expand Up @@ -88,15 +88,12 @@ <h3 class="p-heading--2">Thank you for enquiring about Kafka</h3>
<p class="p-heading--4">A member of our team will be in touch within one working day.</p>
</div>
<div class="col-5 u-vertically-center u-hide--medium u-hide--small u-align--center">
{{
image(
url="https://assets.ubuntu.com/v1/cbae9a60-thank_you_orange_cmyk.svg",
alt="smile",
width="200",
height="200",
hi_def=True,
loading="auto",
) | safe
{{ image(url="https://assets.ubuntu.com/v1/cbae9a60-thank_you_orange_cmyk.svg",
alt="smile",
width="200",
height="200",
hi_def=True,
loading="auto") | safe
}}
</div>
</div>
Expand Down

0 comments on commit 9589c63

Please sign in to comment.