Ok so i have this script that i have written out that when the user fills out all of the forms and they push the email button it opens up a blank outlook email and it copies all the form information into the email and all they have to do is it send but for some reason when i hit the email button all of my forms are mashed together on the same line and I need each individual form on there on line. here is what im using Any help would be great i have looked everywhere to fix this and i have tried rewriting it as well, but no luck
[CODE]<SCRIPT LANGUAGE=”JavaScript”>
function updateDescription (frm)
{
var currentdate = new Date()
var Template = “”;
var vald=””;
var frm = document.getElementsByTagName(“form”)[0];
if (window.event.srcElement == frm.emailform){
core= “”
}
else
core = “”
Template += “VOIP #: ” + frm.voipex8.value + core;
Template += “Time (US EST) The Caller May Be Contacted: ” + frm.time1.value + core;
Template += “CSC Backup POC in US #: ” + frm.poc1.value + core;
Template += “Time CSC Back up in US May Be Contacted: ” + frm.time2.value + core;
Template += “Environment: ” + frm.Enviroment1.value + core;
Template += “Affected Machine Name: ” + frm.Affected1.value + core;
Template += “Machine IP Address: ” + frm.machineipex8.value + core;
Template += “Machine OS: ” + frm.machineosex8.value + core;
Template += “User ID: ” + frm.useridex8.value + core;
Template += “Application User ID: ” + frm.appuseridex8.value + core;
Template += “Machine Location: ” + frm.machinelocex8.value + core;
Template += “Mainframe LPAR: ” + frm.mainframeex8.value + core;
Template += “Application(s) Affected: ” + frm.applicationex8.value + core;
Template += “Urgency: ” + frm.sev1.value + core;
Template += “Impact: ” + frm.sev2.value + core;
Template += “Severity: ” + frm.sevex8.value + core;
Template += “Assignment Group: ” + frm.assigngrpex8.value + core;
Template += “Description of the Issue: ” + frm.Descript1.value + core;
if (window.event.srcElement == frm.emailform){
//this creates the email, it is up to the sender to hit send
var eml=””;
var bod=”&body=”+escape(Template);
var subj=”?subject=Email Request”;
location.href=”mailto:”+eml+subj+bod;
}
if (window.event.srcElement == frm.copyform){
frm.holdtext.value = Template;
Copied=frm.holdtext.createTextRange();
Copied.execCommand(‘copy’);
alert(‘Template copied! Paste (CTRL+V or right click and paste) into long description of Service Center ticket’);
}
}
</SCRIPT>