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 run time 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.

AttributeDescription
buttonLocationDefines the location of the navigation buttons in the flow’s user interface. Available values are:top, bottom, or both.
buttonStyleAssigns a style to the flow navigation buttons as a set. Can only be used for inline styling, not for CSS classes.

Example buttonLocation:

1<apex:page>
2<flow:interview name="MyFlow" buttonLocation="bottom"/>
3</apex:page>

Note: If unspecified, the buttonLocation value defaults to both.

Example buttonStyle:

1<apex:page>
2  <flow:interview name="MyFlow" buttonStyle="color:#050; background-color:#fed; border:1px solid;"/> 
3</apex:page>

Flow-Specific CSS Classes 

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

Flow Style ClassApplies to…
FlowContainerThe <div> element containing the flow.
FlowPageBlockBtnsThe <apex:pageBlockButtons> element containing the flow navigation buttons.
FlowCancelBtnThe Don’t Pause button.
FlowPauseBtnThe Pause button.
FlowPreviousBtnThe Previous button.
FlowNextBtnThe Next button.
FlowFinishBtnThe Finish button.
FlowTextA text field label.
FlowTextAreaA text area field label.
FlowNumberA number field label.
FlowDateA date field label.
FlowCurrencyA currency field label.
FlowPasswordA password field label.
FlowRadioA radio button field label.
FlowDropdownA picklist label.

Note: 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 {}.

See Also