I'm trying to call one custom form from another and pass some data to the second: if (id == "push1")
{
var vCompany=lawForm.getFormValue("text1");
var vYear = lawForm.getFormValue("text3");
var vQtr = lawForm.getFormValue("text4");
var vEmp = lawForm.getDataValue("MANAGER",0);
var sURL= portalObj.path+"?_TKN=CC42.1&QIC-COMPANY="+
vCompany+"&SUPER-EMP="+vEmp+"&QIC-YEAR="+vYear+"&QIC-QUARTER="+vQtr;
alert (sURL);
window.open(sURL);
return true;
}
Do y'all see anything wrong with this? When it opens the form nothing is filled out it’s just blank! I would like to have the second form do an inquiry when it pops up too! Thanks.
David, Thanks for your help, I tried the HK and I am still getting a blank form. Any suggestions? if (id == "push2") { var vFC="I" var vCompany=lawForm.getFormValue("text1"); var vYear = lawForm.getFormValue("text3"); var vQtr = lawForm.getFormValue("text4"); var vEmp = lawForm.getDataValue("MANAGER",1); var vEmp2 = portalWnd.oUserProfile.getAttribute("employee"); var vHK = "000100000197120132" var sURL= portalObj.path+"?_TKN=CC42.1&_QIC-COMPANY="+ vCompany+"&_SUPER-EMP="+vEmp+"&_QIC-YEAR="+vYear+"&_QIC-QUARTER="+vQtr+"_HK="+vHK;
alert(sURL);
return true; }