Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Aura component controller to handle flow navigation.
handleCaptured : function(component, event, helper)
console.log('Captured signature')
let flowAction=null;
let availableActions=component.get('v.availableActions');
console.log('Available actions = ' + availableActions);
for (let idx=0; idx<availableActions.length && null==flowAction; idx++) {
let availAction=availableActions[idx];
if ('NEXT'==availAction) {
else if ('FINISH'==availAction) {
console.log('Flow action = ' + flowAction);
if (null!=flowAction) {
let navigate=component.get("v.navigateFlow");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.