You need to sign in to do that
Don't have an account?
NT
error in overriding a clone button
Hi All,
I am overriding a clone button by a sControl of a custom object and setting a url. This url is same as the real Clone button shows.
But on my buttons click the page goes in infinite loop and calls again and again the same url.
My sControl code is.....
function initiateClone()
{
var URL = "/"+Id+"/e?clone=1";
var saveURL = "&retURL="+RetURLQueryString;
URL = URL+saveURL;
window.parent.location.href = URL;
}
Thanks
Nitin Gupta
I am overriding a clone button by a sControl of a custom object and setting a url. This url is same as the real Clone button shows.
But on my buttons click the page goes in infinite loop and calls again and again the same url.
My sControl code is.....
function initiateClone()
{
var URL = "/"+Id+"/e?clone=1";
var saveURL = "&retURL="+RetURLQueryString;
URL = URL+saveURL;
window.parent.location.href = URL;
}
Thanks
Nitin Gupta
then var URL = "/"+Id+"/e?clone=1" append parameter "&nooverride=1";
If i use nooverride=1 then record is not cloning but opens in edit mode.....