Newer Version Available

This content describes an older version of this product. View Latest

Control Whether Users Can Pause a Flow from a Visualforce Page

After you embed a flow in a Visualforce page with the <flow:interview> component, consider whether you want to let users pause flows from that page. Set the allowShowPause attribute to false to prevent users from pausing.
Whether the Pause button appears depends on three settings.
  • Your organization’s Workflow and Approval settings must have Let Users Pause Flows enabled.
  • For this <flow:interview>, allowShowPause must not be false. The default value is true.
  • Each screen must be configured to show the Pause button.

Example

In a Visualforce page, you’ve embedded a flow that includes three screens. Screen 1 is configured to show the Pause button. Screens 2 and 3 are configured to not show the Pause button.

Let Users Pause Flows allowShowPause Pause button
Enabled true or not set Appears only on the first screen
Enabled false Doesn’t appear for any screens in this Visualforce page
Not enabled true or not set Doesn’t appear for any screens
This example embeds the MyUniqueFlow flow in a Visualforce page and doesn’t allow the Pause button to appear.
1<apex:page>   
2   <flow:interview name="MyUniqueFlow" allowShowPause="false" />
3</apex:page>