+ Start a Discussion
Developer BaseDeveloper Base 

Lightning Component - Toggle between screens using Next button in footer

I have two components. First component has Next button in the footer (bottom right corner). I want to implement such functionality that when a user clicks that next button, the first component is closed and a second is open.

I am using Lightning Components (not LWC!). I tried using Navigation API but I haven't figured it out so far.

I want it to work the very same when when you add products to a Quote (first you choose products from Price Book, then you click next and choose the values of the products and click Save - two sreen component).

Anyone has got a clue how to do this?