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
Nish321Nish321 

Hide the field name and dispay field value

On page layout,  Can we hide the field name and dispay field value alone?
 
Best Answer chosen by Nish321
Mahesh DMahesh D
Hi Ramshah,

We can't achieve it using the Salesforce Standard Page layout but if you want to achieve a similar functionality then have to write a separate VF page and display it as a section inside the page layout.

Please follow the below links to embed the VF page inside the Standard Page Layout:

https://help.salesforce.com/apex/HTViewSolution?id=000005105&language=en_US

https://developer.salesforce.com/docs/atlas.en-us.workbook_vf.meta/workbook_vf/overrides_2.htm

https://developer.salesforce.com/forums/?id=906F000000096xDIAQ

http://blog.jeffdouglas.com/2009/05/08/inline-visualforce-pages-with-standard-page-layouts/


If you have more number of fields to customize then you can override the New button with custom VF page and hide / show fields according your requirement.

https://help.salesforce.com/HTViewHelpDoc?id=links_customize_override.htm

https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_customize_override.htm

http://www.salesforcetutorial.com/overriding-standard-new-button-vf-page/

http://mrjavascript.blogspot.com/2013/07/conditional-override-new-standard.html


If you leave all these solutions aside,  

My recommendation is not to hide the label with any overriding / inline VF page, go with a workaround by giving a short form of label names.


Please do let me know if it helps you.

Regards,
Mahesh

 

All Answers

Amit Chaudhary 8Amit Chaudhary 8
NO you can not do that in salesforce standard page layout. You can do the same on VF page with outputText field
Mahesh DMahesh D
Hi Ramshah,

We can't achieve it using the Salesforce Standard Page layout but if you want to achieve a similar functionality then have to write a separate VF page and display it as a section inside the page layout.

Please follow the below links to embed the VF page inside the Standard Page Layout:

https://help.salesforce.com/apex/HTViewSolution?id=000005105&language=en_US

https://developer.salesforce.com/docs/atlas.en-us.workbook_vf.meta/workbook_vf/overrides_2.htm

https://developer.salesforce.com/forums/?id=906F000000096xDIAQ

http://blog.jeffdouglas.com/2009/05/08/inline-visualforce-pages-with-standard-page-layouts/


If you have more number of fields to customize then you can override the New button with custom VF page and hide / show fields according your requirement.

https://help.salesforce.com/HTViewHelpDoc?id=links_customize_override.htm

https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_customize_override.htm

http://www.salesforcetutorial.com/overriding-standard-new-button-vf-page/

http://mrjavascript.blogspot.com/2013/07/conditional-override-new-standard.html


If you leave all these solutions aside,  

My recommendation is not to hide the label with any overriding / inline VF page, go with a workaround by giving a short form of label names.


Please do let me know if it helps you.

Regards,
Mahesh

 
This was selected as the best answer
Nish321Nish321
Thanks Amit and Mahesh !!!