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
Nadia GainsbourgNadia Gainsbourg 

Fields Appear in Editing Mode on VF Page

I created a VF page to use as a subsection on a page layout. The custom fields that I put on it appear in editing mode instead of the same way that they would appear normally. What I need to add to my code in order to get the "normal" Salesforce field look. I have a feeling that it's something super simple that I don't know about as I'm new to VF. Thank you!

<apex:page standardController="Opportunity" tabStyle="Opportunity">
<apex:form >
<apex:pageBlock >
<apex:pageBlockSection title="Before the Call">
<apex:inputField value="{!opportunity.ATS__c}"/>
<apex:inputField value="{!opportunity.Job_Boards_Agregators__c}"/>
<apex:inputField value="{!opportunity.Competitor_Watch__c}"/>
</apex:pageBlockSection>
</apex:pageBlock>

 
venkatesh kotapativenkatesh kotapati
use outputField which is readonly field of sObject instead of inputfield