Showing posts from August, 2017

Redirect Visualforce pages in Salesforce Lightning

Redirect Visualforce page to returning page In this article, I'm going to show you how to redirect visualforce page to redirect into same standard page in classic and salesforce lightning. here I'm going to use standard account list view page, then add a button to call visualforce page. when you click on this button it will go to vf page then call the controller method then come back to same standard account list view page.I'm going to create visualforce page, extension controller and button. Note: Salesforce lightning doesn't support javascript buttons. so we created visualforce page to call apex methods. Create a  Visualforce Page: <apex:page standardController="Account" extensions="ListviewButtonController" action="{!doAction}" recordSetVar="accounts">
    <!-- add your code-->
</apex:page> Here we created a simple vf page with standardlist controller with extension controller. and we used an action attribut…