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
Rakshana Cube84Rakshana Cube84 

the field should not be displayed in edit page and should be displayed in details page in salesforce

Hi All

I want to display a Field which should be displayed in Detail Page only ..no need to display in Edit page

is there any possible ways to do this?
Best Answer chosen by Rakshana Cube84
Dushyant SonwarDushyant Sonwar
Hi Rakshana,

You can use this workaround below as there is no standard solution rather than custom development.

Workaround
If you create your field as formula field that way user will able to see on detail and not on edit . Hope this might help you.

All Answers

Devanshu soodDevanshu sood
It is only possible by using vf pages and javscript.


 
Rakshana Cube84Rakshana Cube84
Ok  Thank you
Devanshu soodDevanshu sood
A pagelayout (if you see the out of box functionality) is the same for both EDIT and DETAIL.
 
However, you can use Visualforce and override the edit page or Detail page such that you only show selected fields.
 
1)Create a vf page for EDIT
 
2)To override the Statndard EDIT page with your VF EDIT page > go to Setup > Customize > Contacts(for e.g.) > Buttons, Links, and Actions > setup your page as the EDIT page.
 
Hope this helps! 
Dushyant SonwarDushyant Sonwar
Hi Rakshana,

You can use this workaround below as there is no standard solution rather than custom development.

Workaround
If you create your field as formula field that way user will able to see on detail and not on edit . Hope this might help you.
This was selected as the best answer