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
VenkatVenkat 

Hide field from Detail apge

Hi All,

I have Pick list field: Color(Values: Red, Green, Yellow). I am selecting values from edit page. I have created one more formula(Text) filed with same name(diffrent API name), formula field is displaying color flag based on pick list values. As of now Pick list field is able to see in both detail page and edit page.

Question: I need to display Color pick list filed in edit page only, don't want it in detail page. Is it possible?

Thanks 
Venkat.
Grazitti TeamGrazitti Team
Hi Venkat,

This is possible. You can keep fields inside separate <apex:OutputPanel> components and use it's render attribute based on your condition of displaying it or not.

Please mark this as best answer if it helps.

Thanks,
Grazitti Team.
VenkatVenkat
Hi Grazitti Team,

Thank you for reply! did you mean we need to create VF page for Input page.

Thanks 
Venkat
Grazitti TeamGrazitti Team
Hi Venkat,

If you are working on page layout, then the field will remain visible on detail page even after editing. Using VF page, you can hide or show fields as required.

Here is the link, if it can help you anyway: https://developer.salesforce.com/forums?id=906F00000008sopIAA

Thanks,
Grazitti Team.