+ Start a Discussion
shra1_devshra1_dev 

how to display the customfield values in the VF page

Hi,

 

  i am new to the salesforce, please help me to do this

 

how to Display the values of some fields of custom object in the visualforce page.

 

i hav written like this: (it is not displaying the field values)

 

<apex:page standardController="UserProfile__c">

 

Welcome {!UserProfile__c.empName__c}

 

your role is {!UserProfile__c.Role__c}

 

</apex:page>

 

here UserProfile__c is a custom object and ampName__c and Role__c are fields in that object.

Best Answer chosen by Admin (Salesforce Developers) 
SSRS2SSRS2

Hello shra1_dev

  To shown values you have to put id attribute(get UserProfile__c's record id) in your URL.

  for more information refer

 

-Suresh

All Answers

SSRS2SSRS2

Hello shra1_dev

  To shown values you have to put id attribute(get UserProfile__c's record id) in your URL.

  for more information refer

 

-Suresh

This was selected as the best answer
shra1_devshra1_dev

Thank u Suresh.

 

I got it.