Skip to content

Commit 51e876e

Browse files
authored
Merge pull request #831 from gruntwork-io/ib/fix-sales-contact-form
contact: Migrate to HubSpot forms as a temporary fix from broken FormBucket
2 parents 9c8a995 + 7574491 commit 51e876e

File tree

2 files changed

+10
-60
lines changed

2 files changed

+10
-60
lines changed

pages/contact/_form.html

Lines changed: 8 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,8 @@
1-
<div id="error-message"></div>
2-
<form
3-
id="contact-form"
4-
method="post"
5-
target="_blank"
6-
action="https://api.formbucket.com/f/buk_7iB8j7vEJPW9ad2ClJwFfm5M"
7-
>
8-
<input
9-
type="hidden"
10-
name="_subject"
11-
id="_subject"
12-
value="New inquiry from {{ site.url }}"
13-
/>
14-
<input type="hidden" name="_viewing" id="_viewing" value="v1-static" />
15-
<input type="hidden" name="_next" id="_next" value="{{ site.url }}/thanks/" />
16-
<input type="hidden" name="hello_gruntwork" value=""/>
17-
<input type="text" name="_gotcha" style="display:none" />
18-
{% include_relative _input-text.html id="contact-name" label="Name"
19-
required=true placeholder="Jon Doe" %} {% include_relative _input-text.html
20-
id="contact-email" label="Email" required=true placeholder="[email protected]"
21-
type="email" %}
22-
<div class="form-group">
23-
<div class="row">
24-
<div class="col-xs-12 col-md-4">
25-
<label for="contact-message">How can we help?</label>
26-
</div>
27-
<div class="col-xs-12 col-md-8">
28-
<textarea
29-
id="contact-message"
30-
name="contact-message"
31-
class="form-control"
32-
rows="3"
33-
required="required"
34-
placeholder="Enter a message"
35-
></textarea>
36-
</div>
37-
</div>
38-
</div>
39-
<div class="form-group">
40-
<div class="row">
41-
<div class="col-xs-12 col-md-4">
42-
<label for="contact-message"></label>
43-
</div>
44-
<div class="col-xs-12 col-md-8">
45-
<div class="text-center" style="text-align:right;display: block;">
46-
<br>
47-
<button type="submit" id="submit-button" class="col-xs-8 btn btn-primary" ga-on="click" ga-event-category="contact" ga-event-action="submit" style="
48-
">
49-
Book a Demo
50-
</button>
51-
</div>
52-
</div>
53-
</div>
54-
</div>
55-
</form>
56-
57-
58-
1+
<script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/embed/v2.js"></script>
2+
<script>
3+
hbspt.forms.create({
4+
region: "na1",
5+
portalId: "8376079",
6+
formId: "72a05b4d-bc84-4a5b-9bbc-dff4467406fa"
7+
});
8+
</script>

pages/contact/_hero.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<div class="container">
22
<div class="row">
33
<div class="col-xs-12 text-center">
4-
<h1>Book a Gruntwork Demo</h1>
5-
<p class="lead">Speak with a real human about your DevOps Foundations!</p>
4+
<h1>Contact Us</h1>
5+
<p class="lead">Speak with a real human about DevOps</p>
66
</div>
77
</div>
88
</div>

0 commit comments

Comments
 (0)