We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6d694f commit ec8b5f9Copy full SHA for ec8b5f9
2 files changed
src/js/08-feedback.js
@@ -47,6 +47,8 @@
47
48
var action = feedbackForm.getAttribute('action') || '/'
49
50
+ feedbackFormData.append('feedback-page', action)
51
+
52
fetch(action, {
53
method: 'POST',
54
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
src/partials/feedback-form.hbs
@@ -1,7 +1,7 @@
1
<div class="feedback-section">
2
<p class="feedback-section-title">Was this page helpful?</p>
3
<form name="feedback-form" action='{{page.url}}' netlify netlify-honeypot="bot-field">
4
- <input name="feedback-page" value='{{page.url}}' hidden/>
+ <input name="feedback-page" hidden/>
5
<div hidden>
6
<label>
7
Don't fill this out if you're human: <input name="bot-field" type="text" />
0 commit comments