0

I need some help. I'm overriding the delete button with visualforce page. The question is : How can I get back to the list view or details view depending on from where this button was pressed?

1 Answer 1

1

You'll need two buttons, one for the list view & one for the detail page.

Then set the 'retURL' URL parameter accordingly.

2
  • is there any other way to check if the "del" link pressed from list view or delete button was pressed from the detail view to redirect accordingly? the point is to make cancel button
    – foxem
    Commented Jul 10, 2014 at 14:07
  • The cancel button on your VF page will use the value in retURL by default and hence go back to the correct place
    – cropredy
    Commented Jul 10, 2014 at 17:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .