You need to sign in to do that
Don't have an account?

implement the "Next Step" Button on a lightning Form
Hello,
Can you help me to achieve this
I have two lightning components of the same form
How can i implement handleClick function so that when ther user cliks on NEXT Step Button in the first component it moves to the second component
Here is my button
Can you help me to achieve this
I have two lightning components of the same form
How can i implement handleClick function so that when ther user cliks on NEXT Step Button in the first component it moves to the second component
Here is my button
<lightning:button class="sw-btn sw-btn-orange" label="NEXT STEP" variant ="brand" title="Next Step" onclick="{! c.handleClick }"
Greetings to you!
You can use lightning:navigation. Below is the sample code which I have tested in my org and it is working fine. Kindly modify the code as per your requirement.
Component:
Controller:
Don't forget to implement lightning:isUrlAddressable in both the component.
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas