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 org’s Process Automation 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(Process Automation setting)allowShowPause(Visualforce component)Result Pause button
Enabledtrue or not setPause button appears only on the first screen
EnabledfalsePause button doesn’t appear for any screens in this Visualforce page
Not enabledtrue or not setPause button 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>