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
Ajay LAjay L 

Custom VF page Related List button open in a new window

Original question:
have created custom Related list button using a VF page to created child record with default values. However, as I click the button it is opening in a new window and parent record detail page is missing in the background. Even if I cancel the record it shows a blank page instead of record detail page.

I am using sforce.connection.createRecord() to cretae the record.

Parent Rcord:
User-added image

New Opportunity:
User-added image