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 can I make a window close itself if is 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  code something into the page to close itself 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.  So how can I get the popup window to close itself, or do I have to just tell the user to close the tab?
Best Answer chosen by Brad Nordling 9
Brad Nordling 9Brad Nordling 9
Did a redirect to parent using parent's saved Id and it worked.

All Answers

ShivankurShivankur (Salesforce Developers) 
Hi Brad,

Check out the suggestion or idea implemented over below link:
https://salesforce.stackexchange.com/questions/82814/popup-window-close

Hope the information helps. Please mark as Best Answer so that it can help others in future.

Thanks.
Brad Nordling 9Brad Nordling 9
Thanks Shivankur, but that did not work.  The popup does not close, it just does a refresh.
Brad Nordling 9Brad Nordling 9
Did a redirect to parent using parent's saved Id and it worked.
This was selected as the best answer