You need to sign in to do that
Don't have an account?
Ajinkya Deshmukh 16
Redirect back to the VF page
In Classic: There is a New button on the VF page. On click of this button default new record create a page of the custom object gets open. On saving of the record, the page gets redirected to the VF page(On which new button was clicked).
Now we converted this VF page to lightning experience and we are facing a problem following problem.
On click of New button on VF page, a pop-up appears to create a new record (custom object) but in the background, VF page redirects to the blank page. So when we save this record, we are not redirected to the previous VF page.
New Button:
Popup:
Code used in the controller to redirect in the classic:
On VF page, above function is called:
Please suggest a solution to solve this issue.
Now we converted this VF page to lightning experience and we are facing a problem following problem.
On click of New button on VF page, a pop-up appears to create a new record (custom object) but in the background, VF page redirects to the blank page. So when we save this record, we are not redirected to the previous VF page.
New Button:
Popup:
Code used in the controller to redirect in the classic:
Schema.DescribeSObjectResult ppConfigObj = Priority_Points_Settings__c.sObjectType.getDescribe(); String url = ApexPages.currentPage().getUrl(); PageReference pageRef = new PageReference('/'+ppConfigObj.getKeyPrefix()+'/e?retURL='+url); return pageRef;
On VF page, above function is called:
<apex:commandButton value="New" id="newButtonConfig" action="{!createNewPriorityPointConfig}"/>
Please suggest a solution to solve this issue.