Reply
Regular Contributor
mxalix258
Posts: 67
0

Passing contact ID to visualforce page

Is there an easy way to incorporate the contact ID into the visualforce page via an apex class? I have a very basic visualforce page that displays the "Application__c" related list on the contact object.

 

But I want to be able to display this without clicking a button, so I can't pass the contact ID through a link or button.

 

any suggestions?

 

Thanks!

Newbie
Marc_LECONTE
Posts: 2
0

Re: Passing contact ID to visualforce page

Hello,

Basically you can add id with this kind :

<apex:page standardController="Contact">
Hello {!$User.FirstName}!
<p>You are viewing the {!contact.id} contact.</p>
</apex:page>

 

Works fine for me!