You need to sign in to do that
Don't have an account?
kMans2k
Syntax error on code for custom button
Hello all,
I have tried the folllowing code to pass some input via the URL to autofill entries. When I click the button, Salesforce complains of a syntax error. The button is placed on the detail page for ObjA.
Being a newbie, I cannot spot anything. I am hoping an experienced eye will do so:
<script language="JavaScript">
function redirect() {
parent.frames.location.replace("/006/e?retURL=%2F{!customObjA__c.Id}&opp3={!customObjA__c.Name}" );
}
redirect();
</script>
function redirect() {
parent.frames.location.replace("/006/e?retURL=%2F{!customObjA__c.Id}&opp3={!customObjA__c.Name}" );
}
redirect();
</script>
<html>
<head>
<script type="text/javascript" src="/js/functions.js"></script>
<script src="/soap/ajax/8.0/connection.js"></script>
<script language="javascript">
function nav()
{
var url = "/006/e?retURL=%2F{!customObjA__c.Id}&opp3={!customObjA__c.Name}";
frames.location.replace(url);
}
</script>
</head>
<body>
<input type='submit' value='submit' onclick='nav()'>
</body>
</html>