You need to sign in to do that
Don't have an account?
RHILL
Error message while overriding new button
Has anybody seen this message? I am trying to override the new button and pass parameters from one object to the next.
Here is my code:
html>
<head>
<title></title>
<script>
var newurl="{!URLFOR( $Action.Comp_Pricing__c.New ,null,
[ eid= Asset.Id,
CF00N40000001VEFB= Asset.Account,
CF00N40000001VEFB_Lkid= Asset.AccountId,
CF00N40000001VEPp= Product2.Name,
CF00N40000001VEPp_lkid= Product2.Id,
retURL=$Request.retURL ],true)}";
window.parent.location.replace(newurl);
</script>
</head>
<head>
<title></title>
<script>
var newurl="{!URLFOR( $Action.Comp_Pricing__c.New ,null,
[ eid= Asset.Id,
CF00N40000001VEFB= Asset.Account,
CF00N40000001VEFB_Lkid= Asset.AccountId,
CF00N40000001VEPp= Product2.Name,
CF00N40000001VEPp_lkid= Product2.Id,
retURL=$Request.retURL ],true)}";
window.parent.location.replace(newurl);
</script>
</head>
=================
Here is the error message
Cross-site Scripting |
Possible cross site scripting attempt detected. |
Naishadh
Just check you s-control type. it should be html.