You need to sign in to do that
Don't have an account?
Chetan Pradhan
Visualforce Cancel button taking to home page in Lightning
I have a visualforce page being used in Lightning. The default Cancel button takes me to the home page of Lightning rather than the record page from where I clicked on the New button. However, it works fine in Classic. Any help would be really appreciated.
I have tried adding following method in the controller, but that didn't help.
public PageReference cancel(){
return controller.cancel();
}
Visualforce Line:
<apex:commandButton value="Cancel" action="{!cancel}"/>
Thanks,
Chetan
I have tried adding following method in the controller, but that didn't help.
public PageReference cancel(){
return controller.cancel();
}
Visualforce Line:
<apex:commandButton value="Cancel" action="{!cancel}"/>
Thanks,
Chetan
https://salesforce.stackexchange.com/questions/190462/implement-a-back-or-cancel-button-in-a-lightning-component-in-a-vf-page-in
Let me know if it is working.
Please share the workaround if you have.