+ Start a Discussion



I am trying to display the account name , Mailing_Street__c from account object in VF page but i am not able to display it. The code is here 

<apex:page standardController="account">
<apex:form >
<apex:pageBlock >

<apex:pageBlockSection title="Account Details" columns="1"> 
<apex:outputField value="{!account.name}" label="Account" />
<apex:outputField value="{!account.Mailing_Street__c}"/>

<!--<table border ="1">

  When i used this code i am only able to display the field name only. please help me to solve this problem.



Chamil MadusankaChamil Madusanka

Have you set parameter to the URL.



 Check wth your one of account ID as the parameter


If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.



sorry i am not able to understand please can you explain ne how to use it.

Chamil MadusankaChamil Madusanka

You have said that you could not able to display the output fields in visualforce. Please post your URL, when you test your vf page with this code. And eloborate your  issue.


ok fine i got it by passing parameter. but can you hel me to display some amount of value.


could you paste a screenshot of how u see the page right now. It would be easier to comment on the issue


it should display value.. how do you call your visualforce page?

Andy BoettcherAndy Boettcher

Which fields are you looking to display?  All of the Account object fields are able to be shown on a VF page in the manner that you have set.  Look at your object fields (Setup -> Customize -> Accounts) and use the "API Name" in your VF variable.