Newer Version Available
Build a Custom Navigation Model for Your Flow Screens
Example
This component (c:choiceNavigation) displays a script and a choice in the form of buttons.
c:choiceNavigation Component
c:choiceNavigation Design
The design resource includes the scriptText attribute, so you can set the script from the flow.
c:choiceNavigation Style
c:choiceNavigation Controller
When the user clicks either of the buttons, the JavaScript controller calls navigateFlow(“NEXT”), which is the equivalent of the user clicking Next.
defaultTokens.tokens
The script in c:choiceNavigation uses tokens to stay in sync with the Salesforce Lightning Design System styles.