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?


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

Then set the 'retURL' URL parameter accordingly.

  • 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 Jul 10 '14 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 Jul 10 '14 at 17:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.