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
Priya Guleria 7Priya Guleria 7 

please tell me how to show the opportunity fields value show in VF pags

Shirish DwivediShirish Dwivedi
You can go to the Page layout of the opportunity object and in the page layout drag and drop the fields you want to show in the VF page.
Hope its clear :)

 
Shirish DwivediShirish Dwivedi
or if you want to do it by programming you can just refer as follows, suppose I have a page in which I need to show/refer the field of Product2 (opportunity Product) Object- 

<apex:column headerValue="{!$ObjectType.Product2.Fields.Family.Label}" value="{!a.Product2.Family}"/>
// This will show me the "family" field of the Product2 object.

Mark it as the best answer if it solves your issue!

Thanks
Priya Guleria 7Priya Guleria 7
hii Shirish Dwivedi...
sorry i don't understand .. i try but it will not working .  please help me to Show fields opportunity name ,stage name,account name(it
 needs to clickable and on click navigate to account view ).
 
Naveen DhanarajNaveen Dhanaraj
Hi priya,
Try this,
<apex:page standardController="Opportunity">
    <apex:form>
        <apex:pageBlock>
            <apex:pageBlockSection>
                  <apex:inputfield label="Name" value="{!Opportunity.Name}" />
                  <apex:inputfield label="StageName" value="{!Opportunity.StageName}"/>
                  <apex:inputfield label="Account Name" value="{!Opportunity.Accountid}"/>     
              </apex:pageBlockSection>
         </apex:pageBlock>
      </apex:form> 
</apex:page>
If this helps mark Best Answer!!!