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
jsallen79jsallen79 

Closing a Flow popup window

I've created a Flow that is embedded in a Visualforce page.  The page is opened in a new Salesforce window, which is launched by a custom button.  The flow creates a new record successfully, but upon creation of the record I would like the popup to close and ideally refresh the underlying Salesforce window that it was launched from.  Below is the code behind by page.

 

<apex:page standardController="Services__c" showHeader="false" sidebar="false">
	<flow:interview name="LogHours" buttonLocation="bottom" >
		<apex:param name="vaServiceId" value="{!Services__c.Id}"/>
		<apex:param name="vaUser" value="{!$User.Id}"/>
		<apex:param name="vaServiceName" value="{!Services__c.Name}"/>
	</flow:interview>
</apex:page>

 Any input on how to close this popup once the record is created would be much appreciated.