-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathhtml-feedback-survey-form.html
More file actions
626 lines (580 loc) · 20.3 KB
/
html-feedback-survey-form.html
File metadata and controls
626 lines (580 loc) · 20.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
<div class="main-container">
<!-- Author: FormBold Team -->
<!-- Learn More: https://formbold.com -->
<div class="form-wrapper">
<img
src="https://ucarecdn.com/dd89656c-de92-494e-9e4d-2cc0fac0ecf6/surveyform.png"
alt="Survey Form Illustration"
class="form-image"
/>
<form action="https://formbold.com/s/FORM_ID" method="POST">
<!-- Title and Description -->
<div class="form-header">
<h2 class="form-title">Customer Feedback Survey</h2>
<p class="form-description">
Please provide your feedback to help us improve. All
required fields are marked with *.
</p>
</div>
<!-- Basic Information -->
<div class="form-group">
<label for="fullname" class="form-label">Full Name</label>
<input
type="text"
name="fullname"
id="fullname"
class="form-input"
/>
</div>
<div class="form-group">
<label for="email" class="form-label">Email Address*</label>
<input
type="email"
name="email"
id="email"
class="form-input"
required
/>
</div>
<div class="form-group">
<label for="phone" class="form-label"
>Phone Number (Optional)</label
>
<input type="text" name="phone" id="phone" class="form-input" />
</div>
<div class="form-group">
<label for="company" class="form-label"
>Company Name (for B2B)</label
>
<input
type="text"
name="company"
id="company"
class="form-input"
/>
</div>
<div class="form-group">
<label for="experience-date" class="form-label"
>Date of Experience*</label
>
<input
type="date"
name="experience-date"
id="experience-date"
class="form-input"
required
/>
</div>
<!-- Rating Fields -->
<div class="form-group">
<label class="form-label">Overall Satisfaction*</label>
<div class="star-rating-group">
<input
type="radio"
id="star5"
name="overall-satisfaction"
value="5"
required
/><label for="star5" title="5 stars">★</label>
<input
type="radio"
id="star4"
name="overall-satisfaction"
value="4"
/><label for="star4" title="4 stars">★</label>
<input
type="radio"
id="star3"
name="overall-satisfaction"
value="3"
/><label for="star3" title="3 stars">★</label>
<input
type="radio"
id="star2"
name="overall-satisfaction"
value="2"
/><label for="star2" title="2 stars">★</label>
<input
type="radio"
id="star1"
name="overall-satisfaction"
value="1"
/><label for="star1" title="1 star">★</label>
</div>
</div>
<div class="form-group">
<label class="form-label"
>Rate the Quality of Service/Product</label
>
<div class="options-group">
<label class="option-item"
><input
type="radio"
name="service-quality"
value="excellent"
class="form-radio"
/>
Excellent</label
>
<label class="option-item"
><input
type="radio"
name="service-quality"
value="good"
class="form-radio"
/>
Good</label
>
<label class="option-item"
><input
type="radio"
name="service-quality"
value="average"
class="form-radio"
/>
Average</label
>
<label class="option-item"
><input
type="radio"
name="service-quality"
value="poor"
class="form-radio"
/>
Poor</label
>
</div>
</div>
<div class="form-group">
<label class="form-label"
>Rate the Communication / Support</label
>
<div class="options-group">
<label class="option-item"
><input
type="radio"
name="support-rating"
value="excellent"
class="form-radio"
/>
Excellent</label
>
<label class="option-item"
><input
type="radio"
name="support-rating"
value="good"
class="form-radio"
/>
Good</label
>
<label class="option-item"
><input
type="radio"
name="support-rating"
value="average"
class="form-radio"
/>
Average</label
>
<label class="option-item"
><input
type="radio"
name="support-rating"
value="poor"
class="form-radio"
/>
Poor</label
>
</div>
</div>
<div class="form-group">
<label class="form-label">Would You Recommend Us?</label>
<div class="options-group">
<label class="option-item"
><input
type="radio"
name="recommendation"
value="yes"
class="form-radio"
/>
Yes</label
>
<label class="option-item"
><input
type="radio"
name="recommendation"
value="no"
class="form-radio"
/>
No</label
>
</div>
</div>
<!-- Open-Ended Feedback -->
<div class="form-group">
<label for="liked-most" class="form-label"
>What did you like most?</label
>
<textarea
name="liked-most"
id="liked-most"
rows="3"
class="form-textarea"
></textarea>
</div>
<div class="form-group">
<label for="improvement" class="form-label"
>What could we improve?</label
>
<textarea
name="improvement"
id="improvement"
rows="3"
class="form-textarea"
></textarea>
</div>
<div class="form-group">
<label for="additional-comments" class="form-label"
>Additional Comments or Suggestions</label
>
<textarea
name="additional-comments"
id="additional-comments"
rows="3"
class="form-textarea"
></textarea>
</div>
<!-- Client-Specific or Context-Based Fields -->
<div class="form-group">
<label for="service-team" class="form-label"
>Service/Team You Interacted With</label
>
<select
name="service-team"
id="service-team"
class="form-select"
>
<option value="team-1">Team 1 - Consultation</option>
<option value="team-2">Team 2 - Purchase</option>
<option value="team-3">Team 3 - Support</option>
</select>
</div>
<div class="form-group">
<label for="service-type" class="form-label"
>Type of Service Used</label
>
<select
name="service-type"
id="service-type"
class="form-select"
>
<option value="consultation">Consultation</option>
<option value="purchase">Purchase</option>
<option value="support">Support</option>
</select>
</div>
<div class="form-group">
<label for="project-id" class="form-label"
>Project Name / ID (Optional)</label
>
<input
type="text"
name="project-id"
id="project-id"
class="form-input"
/>
</div>
<!-- Survey-Specific Inputs -->
<div class="form-group">
<label class="form-label">Please rate the following:</label>
<div class="options-group">
<label class="option-item"
><input
type="radio"
name="likert-scale"
value="strongly-agree"
class="form-radio"
/>
Strongly Agree</label
>
<label class="option-item"
><input
type="radio"
name="likert-scale"
value="agree"
class="form-radio"
/>
Agree</label
>
<label class="option-item"
><input
type="radio"
name="likert-scale"
value="neutral"
class="form-radio"
/>
Neutral</label
>
<label class="option-item"
><input
type="radio"
name="likert-scale"
value="disagree"
class="form-radio"
/>
Disagree</label
>
<label class="option-item"
><input
type="radio"
name="likert-scale"
value="strongly-disagree"
class="form-radio"
/>
Strongly Disagree</label
>
</div>
</div>
<div class="form-group">
<label class="form-label"
>Which features do you use most?</label
>
<div class="options-group-vertical">
<label class="option-item"
><input
type="checkbox"
name="features-used"
value="feature-1"
class="form-checkbox"
/>
Feature 1</label
>
<label class="option-item"
><input
type="checkbox"
name="features-used"
value="feature-2"
class="form-checkbox"
/>
Feature 2</label
>
<label class="option-item"
><input
type="checkbox"
name="features-used"
value="feature-3"
class="form-checkbox"
/>
Feature 3</label
>
<label class="option-item"
><input
type="checkbox"
name="features-used"
value="feature-4"
class="form-checkbox"
/>
Feature 4</label
>
</div>
</div>
<!-- Consent & Follow-up -->
<div class="consent-group">
<input type="checkbox" id="follow-up" class="form-checkbox" />
<label for="follow-up" class="consent-label"
>I allow you to contact me for follow-up.</label
>
</div>
<div class="consent-group">
<input
type="checkbox"
id="testimonial-consent"
class="form-checkbox"
/>
<label for="testimonial-consent" class="consent-label"
>I agree to share this feedback publicly (for
testimonial/marketing use).</label
>
</div>
<!-- Submit Button -->
<button type="submit" class="submit-btn">Submit Feedback</button>
</form>
</div>
</div>
<style>
/* General Body and Font Styles */
body {
font-family: "Inter", sans-serif;
background-color: #f3f4f6;
margin: 0;
}
/* Main container for centering the form */
.main-container {
display: flex;
align-items: center;
justify-content: center;
padding: 3rem 1rem;
min-height: 100vh;
box-sizing: border-box;
}
/* Form wrapper/card */
.form-wrapper {
width: 100%;
max-width: 42rem; /* max-w-2xl */
border-radius: 0.5rem; /* rounded-lg */
background-color: white;
padding: 2.5rem; /* p-10 */
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
0 4px 6px -4px rgba(0, 0, 0, 0.1);
box-sizing: border-box;
}
/* Top image styling */
.form-image {
margin-bottom: 3rem; /* mb-12 */
width: 100%;
border-radius: 0.5rem;
}
/* Header section for title and description */
.form-header {
margin-bottom: 2rem; /* mb-8 */
text-align: center;
}
.form-title {
font-size: 1.875rem; /* text-2xl */
font-weight: 600; /* font-semibold */
color: #1f2937; /* text-gray-800 */
}
.form-description {
margin-top: 0.5rem; /* mt-2 */
font-size: 0.875rem; /* text-sm */
color: #4b5563; /* text-gray-600 */
line-height: 1.5;
}
/* Container for each form field group */
.form-group {
margin-bottom: 1.5rem; /* mb-6 */
}
/* Form labels */
.form-label {
display: block;
margin-bottom: 0.5rem; /* mb-2 */
font-size: 0.875rem; /* text-sm */
font-weight: 500; /* font-medium */
color: #4b5563; /* text-gray-600 */
}
/* Common styles for input, select, and textarea */
.form-input,
.form-select,
.form-textarea {
width: 100%;
border-radius: 0.375rem; /* rounded-md */
border: 1px solid #d1d5db; /* border-gray-300 */
padding: 0.75rem; /* p-3 */
font-size: 0.875rem; /* text-sm */
color: #1f2937; /* text-gray-800 */
box-sizing: border-box;
transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
border-color: #6366f1; /* focus:border-indigo-500 */
box-shadow: 0 0 0 1px #6366f1; /* focus:ring-1 focus:ring-indigo-500 */
outline: none;
}
/* Interactive Star Rating */
.star-rating-group {
display: flex;
flex-direction: row-reverse; /* Reverse the order of stars to make the CSS work */
justify-content: flex-end; /* Aligns the reversed stars to the left */
}
.star-rating-group input[type="radio"] {
display: none; /* Hide the actual radio buttons */
}
.star-rating-group label {
font-size: 2rem; /* Size of the star characters */
color: #d1d5db; /* Default, unselected star color */
cursor: pointer;
transition: color 0.2s ease-in-out;
padding: 0 0.1em;
}
/* Change color on hover */
.star-rating-group label:hover,
.star-rating-group label:hover ~ label {
color: #f59e0b; /* Gold color for hovered stars */
}
/* Keep stars colored when a radio button is checked */
.star-rating-group input[type="radio"]:checked ~ label {
color: #f59e0b; /* Gold color for selected stars */
}
/* Radio and Checkbox Groups */
.options-group {
display: flex;
flex-wrap: wrap; /* Allow wrapping on small screens */
gap: 1rem;
}
.option-item {
display: flex;
align-items: center;
}
.form-radio,
.form-checkbox {
height: 1rem;
width: 1rem;
color: #4f46e5;
margin-right: 0.5rem;
}
.options-group-vertical {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
/* Consent Checkbox Group */
.consent-group {
display: flex;
align-items: center;
margin-bottom: 1.5rem;
}
.consent-label {
margin-left: 0.5rem;
font-size: 0.875rem;
color: #4b5563;
}
/* Submit Button */
.submit-btn {
width: 100%;
border-radius: 0.375rem;
background-color: #4f46e5;
padding: 0.75rem 1.5rem;
font-weight: 500;
color: white;
border: none;
cursor: pointer;
transition: background-color 0.3s, box-shadow 0.3s;
}
.submit-btn:hover {
background-color: #4338ca;
}
.submit-btn:focus {
outline: none;
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.5);
}
/* Mobile Responsive Styles */
@media (max-width: 640px) {
.main-container {
padding: 1rem;
}
.form-wrapper {
padding: 1.5rem;
}
.form-title {
font-size: 1.5rem;
}
.options-group {
flex-direction: column;
align-items: flex-start;
gap: 0.75rem;
}
}
</style>