You need to sign in to do that
Don't have an account?
ragati shirisha 4
syntax error.extra name in line 0 i have checked so many times but still cant able to fix this issue
<apex:page showheader="false" sidebar="false" standardController="Account" >
<apex:pageBlock title="account information">
<apex:pageBlockSection title="general account detail">
<apex:outputField value="{!Account.name}"/>
<apex:outputField value="{!Account.fax}"/>
<apex:outputField value="{!Account.phone}"/>
</apex:pageBlockSection>
<apex:pageBlockSection title="related accounts">
<apex:relatedList list="contacts"/>
<apex:relatedList list="opportunities"/>
</apex:pageBlockSection>
</apex:pageBlock>
<apex:pageBlock title="custom table">
<apex:pageBlockTable value="{!Account.contacts}" var="AC">
<apex:column headervalue="contact first name" value="{!AC.first name}"/>
<apex:column headervalue="contact last name" value="{!AC.last name}"/>
<apex:column headervalue="contact email" value="{!AC.contact email}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:page>
<apex:pageBlock title="account information">
<apex:pageBlockSection title="general account detail">
<apex:outputField value="{!Account.name}"/>
<apex:outputField value="{!Account.fax}"/>
<apex:outputField value="{!Account.phone}"/>
</apex:pageBlockSection>
<apex:pageBlockSection title="related accounts">
<apex:relatedList list="contacts"/>
<apex:relatedList list="opportunities"/>
</apex:pageBlockSection>
</apex:pageBlock>
<apex:pageBlock title="custom table">
<apex:pageBlockTable value="{!Account.contacts}" var="AC">
<apex:column headervalue="contact first name" value="{!AC.first name}"/>
<apex:column headervalue="contact last name" value="{!AC.last name}"/>
<apex:column headervalue="contact email" value="{!AC.contact email}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:page>
The contact field API Names you refered wrongly in visualforce page so you are getting this error.
Please try the below code:
Thanks,
Maharajan.C
try below. your error was in below part. your had left spance among firstname and LastName and email.
let me know if above info is helpfull to you and mark it as best answer.
Thank you