function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
RHILLRHILL 

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>
 
=================
Here is the error message
 
Cross-site Scripting
Possible cross site scripting attempt detected.

 
NaishadhNaishadh
Just check you s-control type. it should be html.