< script language="javascript" type="text/javascript" >
//// To include ID od the item as parameter such as in case of EditForm.aspx////
var ID=querySt('ID');
//// Concate the form name with Parameters ////
var url="UsersEditForm.aspx?ID="+ID;
//// Open the form in same window using '_self' attribute in Javascrpt ////
window.open(url,'_self');
//// Function to find the specified parameter value from the current page to pass to next page ///
function querySt(ji)
{
hu = window.location.search.substring(1);
var result="";
gy = hu.split("&");
for (i=0;i
ft = gy[i].split("=");
if (ft[0] == ji)
{
result = ft[1];
}
}
return result;
}
any sharepoint list, one has to enter Javascript in the design code as below.
< /script >
No comments:
Post a Comment