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
Ancil PAAncil PA 

How to redirect to two different pages based on overriding Edit button in Account Detail page


I have two Person Account Edit pages(A and B, which are visual force pages) after saving page A, 
I get redirected to Person Account Detail page. 
when clicking on the Edit option in Person Account Detail page, 
I am redirected to Person Account Edit screen of Page B.
Currently I get redirected only to Page B. 
How can i get an option to redirect to both the Person Account Edit pages(A and B)?
Any help will be greatly appreciated.
SandhyaSandhya (Salesforce Developers) 
Hi,

Try to create another visulaforce page and from that page redirect to your selected pages based on the condition.

Best Regards,
Sandhya