function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SarifkaSarifka 

redirect after deletion

Hi, I'm looking to create a VF page/scontrol that can override the deletion of cases to delete and then bring the user back to the view he was on before the deletion. Any suggestions? Thanks! Sara
sales4cesales4ce

Hi Sara,

 

Typically,the standard delete would do the same.

But, in your request, " You want the user to redirect to view before delete". what does this mean?.

 

i am assuming you want to get user back to list view.If thats the case standard delete would do the same.

 

what exactly are you trying to accomplish with the delete?

 

--

Sales4ce

 

gv007gv007

1. Use page reference

2. In yours delete button code ,after calling the delete method ,redirect it using URL option .

If you posted some sample VF code that will help

SarifkaSarifka
You're right, the standard delete does this already!