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
Nikolay KrustevNikolay Krustev 

VisualForce doesnt show fields that are not shown on leads std. layout

Hello,

i have the following problem:
I want to include a box of VisualForce inside the standard Leads Layout. The issue is that if the field i want to display in the VF box is not already displayed in the std layout it is not showing.
Here is an example code:
<apex:pageblocksection id="GeneralnformationKM" title="General Information" columns="4">
  <apex:inputField value="{!lead.KM_Deal_Type__c}"/>
  <apex:inputField value="{!lead.Vertical__c}"/>
  <apex:inputField value="{!lead.email}"/>
  <apex:inputField value="{!lead.phone}"/>
</apex:pageBlockSection>

KM_Deal_Type__c is showing on the box ONLY when it is also included in the std layout which makes it redundant. The moment I remove it from the std layout it dissapears from the VF box. Any clues?