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

Custom button to open page in the same window



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!'/a1c/e?CF00N20000003ZohQ={!Opportunity.Name}&CF00N20000003ZohQ_lkid={!Opportunity.Id} &retURL=%2F{!Opportunity.Id} & RecordType=01220000000JOLS')



try window.parent.location or