Newer Version Available

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

Customize a Flow’s User Interface

After you’ve embedded a flow in a Visualforce page, you can customize what the flow looks like at runtime by applying custom styles using CSS. Using a combination of flow attributes and CSS classes, you can customize the individual parts of a flow, such as the button location, button style, background, and the look and feel of the screen labels.

Flow Button Attributes

Use these attributes to change how the Next, Previous, Finish, Pause, and Don’t Pause buttons appear in your flow.

Attribute Description
buttonLocation Defines the location of the navigation buttons in the flow’s user interface. Available values are:
  • top
  • bottom
  • both
For example:

If unspecified, the buttonLocation value defaults to both.

Note

buttonStyle Assigns a style to the flow navigation buttons as a set. Can only be used for inline styling, not for CSS classes.
For example:

Flow-Specific CSS Classes

You can override these predefined flow style classes with your own CSS styles.

Flow Style Class Applies to...
FlowContainer The <div> element containing the flow.
FlowPageBlockBtns The <apex:pageBlockButtons> element containing the flow navigation buttons.

To prevent your CSS styling for flow navigation buttons from being overwritten by button styling applied elsewhere in the system, we recommend you specify this flow style class each time you apply CSS styling to flow navigation buttons.

For example, instead of .FlowPreviousBtn {}, enter .FlowPageBlockBtns .FlowPreviousBtn {}.

Note

FlowCancelBtn The Don’t Pause button.
FlowPauseBtn The Pause button.
FlowPreviousBtn The Previous button.
FlowNextBtn The Next button.
FlowFinishBtn The Finish button.
FlowText A text field label.
FlowTextArea A text area field label.
FlowNumber A number field label.
FlowDate A date field label.
FlowCurrency A currency field label.
FlowPassword A password field label.
FlowRadio A radio button field label.
FlowDropdown A drop-down list label.