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
Brad Nordling 9Brad Nordling 9 

How do I close a window that was opened from a lightning record page?

I have a parent object whose lightning record page has a component for a child object related list.  I have created a custom button on the child object that opens a VF page for some bulk editing of child objects associtated with the parent.  When the button is clicked in the related list component, the page opens but I've tried twenty ways to close it in both the class and the VF page but nothing works.  I've read that a popup can't close itself, it must be closed by the window that opened it.  But that was the lightning record page of the parent object.  What's that best way to close the popup window other than telling the user to close the tab?