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
RichardR1RichardR1 

change save behavior

I am new to development. I created a VF page to be used in a section of Contact page layout. But when I tried clicking the Save button from the VF page, it saves and then goes to the Contact detail page... So it becomes a Contact detail page inside a Contact detail page. How can I change it so that it refreshes the entire Contact detail page after save?
Best Answer chosen by RichardR1
ANUTEJANUTEJ (Salesforce Developers) 
Hi Richard,

You can certainly override the existing functionality of the save button by creating a custom controller where you would be able to implement your scenario of the save button so that it can work according to your implementation.

I hope this helps and in case if this came in handy can you please choose this as the best answer so that it can be used by others in the future.

Regards,
Anutej