Very basic model of what I wanted to do.
Code:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>OIT Help Desk</title>
</head>
<body>
<p id = "page"> </p>
<select id="selection" size = "9">
<option>Phone-Escalation</option>
<option>Phone-Password Reset</option>
<option>Phone-General</option>
<option>Phone-Google Desktop</option>
<option>Email-Escalation</option>
<option>Email-General</option>
<option>Email-Password</option>
<option>Information Services</option>
</select>
<button onclick="generate()">Generate()</button>
<script>
function copyToClipboard(s) {
if (window.clipboardData && clipboardData.setData) {
clipboardData.setData('text', s);
}
}
function generate(){
copyToClipboard("Test")
var index = document.getElementById("selection").selectedIndex;
var name = prompt("Name")
var string = ""
var special = false
switch(index){
case 0: string = "I have escalated your ticket up to our " + prompt("Escalated group") + " team. Your incident number is " + prompt("Incident number");
break;
case 1: string = "I am glad we were able to reset your password successfully";
break;
case 2: string = "I am glad I could help you " + prompt("What do you do?");
break;
case 3: string = "I am glad I could help you setup your Google Desktop/ Mobile Client Password.";
break;
case 4: string = "I have escalated your ticket up to our " + prompt("Escalated group") + " team. Your incident number is " + prompt("Incident number");
break;
case 5: string = "I am glad I could help you " + prompt("What do you do?");
break;
case 7: string = "Transfered caller to " + prompt("Dept/Person") + " [" + prompt("Transfer number") + "]";
special = true;
break;
case 6: string = name + ",<br><br>Thanks for contacting 1-Help. Unfortunately I cannot reset passwords over email due to security reasons. In order to get your password reset you will have to give us a call at 612-301-4357 (any time 24/7) and reference incident number " + prompt("Inc Number") + "<br><br>Thanks and have a great day! <br><br> John H";
special = true;
break;
}
if (special){
document.getElementById("page").innerHTML = string
} else{
document.getElementById("page").innerHTML = name + ",<br><br>Thanks for calling 1-Help." + string + ". If you have any further questions feel free to call us at 612-301-4357<br><br>Thanks and have a great day! <br><br> John H"
}
}
</script>
</body>
</html>