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
Sai1220Sai1220 

Remove or hide standard fields from a standard object

This is my scenario. I am using the Contracts object in my application. I do not want to show certain fields like status in my page. But it's a required only field . How do I work around this ?
Hargobind_SinghHargobind_Singh
Hi, I don't think there is a direct method to do that. You could go the visualforce route and create your own layout though.
Dilip vDilip v
As per my knowledge there is no way to hide standerd fields of standerd Object. The better way is to create a custom visualforce page.

Thanks,
Dilip.
NaveenReddyNaveenReddy
Hi,
 We cannot hide required fields from Page layout.
To solve this we need to write our own Visualforce page and override new button with this VF page.
 
<apex:page standardController="Contract">
<apex:form>
<apex:pageblock>
<apex:pageblocksection >
  <apex:inputField value="{!Contract.Account.Name}"  label="name"/>
  <!-- iclude other components-->
  </apex:pageblocksection>
  <apex:pageblockButtons location="top">
  <apex:commandButton action="{!save}" value="save"/>
  </apex:pageblockButtons>
  </apex:pageblock>
  </apex:form>
  
</apex:page>


User-added image

Thanks,
Naveen.
http://www.autorabit.com