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
mxalix258mxalix258 

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!

Marc_LECONTEMarc_LECONTE

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!