You need to sign in to do that
Don't have an account?
Sascha Löffler
Redirect VF Page to Record Detail Page
Hi together,
i want to redirect the edit button of a custom object to the record detail page. My idea was to create a VF page that automatically redirects to record detail page, when clicking on edit. Can someone of you help me out of that with a little code snippet?
That would be great.
Thanks and best regards
<apex:page standardController="Account">
<apex:detail subject="{!account.ownerId}" relatedList="false" title="false"/>
</apex:page>
Please let me know if you have any questions.
thanks for your fast reply, the requirement ist for the related list "edit" button, so if i click edit for a record through the related list i want to redirect to the record detail page, because the most time we edit this type of record we add or remove files and that is not possible through the standard pop-up dialoge.
But that brings me to the next topic, is it possible to show the edit button within the related list and hide it on the record detail page?