+ Start a Discussion

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}"/>

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