1

I have a screen flow that has a sub flow. On the subflow I have an Aura component that has the following line.

<lightning:flow aura:id="flowData" onstatuschange="{!c.statusChange}" />

The statusChange method is just this

statusChange: function (cmp, event, helper) {
    console.log(" test ");
},

The statusChange method runs on the "STARTED" change but not on the "FINISHED" change. Any idea why?

I tried replacing the built in footer with a custom footer, but when running the following code it navigates the parent flow and not the subflow.

var navigate = cmp.get('v.navigateFlow');
navigate("NEXT");
1
  • did you find a find a solution?
    – mnunezdm
    Commented Jul 6, 2023 at 16:42

1 Answer 1

-2

Try to include this on statusChange

 if(event.getParam("status") === "FINISHED") {
        console.log(" test ");
 }

and also on flow please add Finish button on footer.

1
  • The statusChange method isn't running so adding an if statement to it didn't change anything. The Next button and the Finish button are the same and it is already on the page but when I click it the Next button it doesn't run the statusChange method.
    – Travis
    Commented Sep 7, 2022 at 20:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .