You need to sign in to do that
Don't have an account?
skiptomylou11
Custom button to open page in the same window
Hello,
I have the following custom button which is used on a related list (custom object) to record a new entry.
The standard 'New' buttons in the related lists open in the same window as the opprtunity is shown.
I would like to have the same functionality here...
I tried window.location but that gives me an error when clicking the button.
Many thanks!
window.open('/a1c/e?CF00N20000003ZohQ={!Opportunity.Name}&CF00N20000003ZohQ_lkid={!Opportunity.Id} &retURL=%2F{!Opportunity.Id} & RecordType=01220000000JOLS')
try window.parent.location or window.top.location