You need to sign in to do that
Don't have an account?
Marco Antonio Calvo
Visualforce page. Know previous page
Hia @ll
I created a custom functionality to change several records in a custom object and I'm also create one button to access it.
My problem is that I don't know how to return to the previous page once the action is completed.
You can invoke the button in a related list view or in a list view so I don't have a defined return list. I always want to go back to the page where the action is executed.
Is it possible to get this information?
I'm usingin lighting experience.
I created a custom functionality to change several records in a custom object and I'm also create one button to access it.
My problem is that I don't know how to return to the previous page once the action is completed.
You can invoke the button in a related list view or in a list view so I don't have a defined return list. I always want to go back to the page where the action is executed.
Is it possible to get this information?
I'm usingin lighting experience.
public PageReference goBack(){
Pagereference pr = new pagereference('/apex/<your_page_name>');
return pr;
}