-
Notifications
You must be signed in to change notification settings - Fork 1
/
10th.html
80 lines (77 loc) · 4.68 KB
/
10th.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>NGOs</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="assets/css/main.css" />
<noscript><link rel="stylesheet" href="assets/css/noscript.css" /></noscript>
</head>
<body>
<footer id="footer">
<section>
<form method="post" action="google-sheet">
<h1>FEEDBACK FORM</h1>
<div class="fields">
<div class="field">
<label for="name">Name</label>
<input type="text" name="Name" id="name" />
</div>
<div class="field">
<label for="email" >Email</label>
<input type="text" name="Email" id="email" />
</div>
<div class="field">
<label for="Age">Age</label>
<input type="number" name="Age" id="Age" />
</div>
<div class="field">
<label for="Number">Contact Number</label>
<input type="tel" name="Number" id="Number" pattern="+91 [7-9]{2}-[0-9]{3}-[0-9]{4}" value="+91" />
</div>
<div class="field">
<label for="PrgrmCourse" style="font-size:30px"><strong>Which course has the student joined after 10th? </strong></label><br>
<input type="radio" id="yes11" name="PrgrmCourse" value="Yes">
<label for="yes11"style="font-size:25px">PCMB</label><br>
<input type="radio" id="no7" name="PrgrmCourse" value="No">
<label for="no11"style="font-size:25px">PCMC</label><br>
<input type="radio" id="partially11" name="PrgrmCourse" value="Partially">
<label for="partially11"style="font-size:25px">Commerce</label><br>
<input type="radio" id="partily11" name="PrgrmCourse" value="Partially">
<label for="partily11"style="font-size:25px">Arts</label>
</div>
<div class="field">
<label for="PrgrmRea" style="font-size:30px"><strong>Why did he/she choose to join the above?</strong></label><br>
<textarea id="PrgmRea" name="PrgmRea" rows="4" cols="50"style="font-size:25px">Your Descriptive feedback</textarea>
</div>
<div class="field">
<label for="PrgrmUse" style="font-size:30px"><strong>Was the workshop and other resources from DreamPath useful? </strong></label><br>
<input type="radio" id="yes12" name="PrgrmUse" value="Yes">
<label for="yes12"style="font-size:25px">Yes</label><br>
<input type="radio" id="no12" name="PrgrmUse" value="No">
<label for="no12"style="font-size:25px">No</label><br>
</div>
<ul class="actions">
<li><input type="submit" value="submit" /></li>
</ul>
</div>
</form>
<script>
const scriptURL = 'https://script.google.com/macros/s/AKfycby9bUv3Jz7SohpA7HME7K6S6efIblbLydfwZGRytXYF3X26qVGZYr5XBzOihKI6ll-Njw/exec'
const form = document.forms['google-sheet']
form.addEventListener('submit', e => {
e.preventDefault()
fetch(scriptURL, { method: 'POST', body: new FormData(form)})
.then(response => document.getElementById("demo").innerHTML = "<div class='alert alert-primary' role='alert'><b>Thank You for providing the details, We shall get back to you shortly !</b></div>",contact.reset())
.catch(error => console.error('Error!', error.message))
})
</script>
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/jquery.scrollex.min.js"></script>
<script src="assets/js/jquery.scrolly.min.js"></script>
<script src="assets/js/browser.min.js"></script>
<script src="assets/js/breakpoints.min.js"></script>
<script src="assets/js/util.js"></script>
<script src="assets/js/main.js"></script>
</body>
</html>