You need to sign in to do that
Don't have an account?
Prevent Double Tabbing during Custom New Button URL click
I have a related list button for a custom object that appears to basically work, however it creates a new window inside the current one.
Also, upon saving it does not refresh the opportunity detail page (to which it is related) therefore showing the new record that was recently created.
/a05/e?CF00N40000001jSgT={!Opportunity.Name}&00N40000001jXi0={!Opportunity.Market__c}&CF00N40000001jSgT_lkid={!Opportunity.Id}&retURL=%2F{!Opportunity.Id}&saveURL=%2F{!Opportunity.Id}
If I rewrite as shown below , which is the help I have been able to locate, I get a cross-site scripting error/warning...... Any help on this one....I have exhausted anything I can find.....
<script language="Javascript"> function redirect(){ parent.frames.locations.replace('/a05/e?CF00N40000001jSgT={!Opportunity.Name}&00N40000001jXi0={!Opportunity.Market__c}&CF00N40000001jSgT_lkid={!Opportunity.Id}&retURL=%2F{!Opportunity.Id}&saveURL=%2F{!Opportunity.Id}'); } redirect(); </script>
Message Edited by nrwing on 08-13-2008 01:16 PM
Use the following line after saving the record : -
opener.location.replace("/{!Opportunity.Id}");
Check the Behavior field and set it to "Display in existing window without sidebar or header"
This will open the new page just like when you edit/more to another object.