-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInputForm.html.txt
More file actions
56 lines (46 loc) · 1.87 KB
/
Copy pathInputForm.html.txt
File metadata and controls
56 lines (46 loc) · 1.87 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
<!DOCTYPE html>
<html>
<head>
<base target="_top">
<style>
body { background-color: #FFFFFF; }
input, select { text-align: center; }
#month, #day, #year { width: 50px; }
</style>
</head>
<body>
<form id="inputForm">
<label for="company">Company</label><br>
<input type="text" id="company" name="company" required><br><br>
<label for="date">Date Applied</label><br>
<input type="text" id="month" name="month" required placeholder="MM">
<input type="text" id="day" name="day" required placeholder="DD">
<input type="text" id="year" name="year" required placeholder="YYYY"><br><br>
<label for="position">Position</label><br>
<input type="text" id="position" name="position"><br><br>
<label for="season">Season</label><br>
<input type="text" id="season" name="season"><br><br>
<label for="id">ID</label><br>
<input type="text" id="id" name="id"><br><br>
<label for="status">Status</label><br>
<select id="status" name="status">
<option value="Applied">Applied</option>
<option value="Interview">Interview</option>
<option value="Accepted">Accepted</option>
<option value="Rejected">Rejected</option>
</select><br><br>
<label for="link">Link</label><br>
<input type="text" id="link" name="link"><br><br>
<input type="submit" value="Submit">
</form>
<script>
document.getElementById("inputForm").addEventListener("submit", function(event) {
event.preventDefault();
var form = document.getElementById("inputForm");
google.script.run.submitForm([form.company.value, form.month.value, form.day.value, form.year.value, form.position.value, form.season.value,
form.id.value, form.status.value, form.link.value]);
google.script.host.close();
});
</script>
</body>
</html>