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
javierjiesjavierjies 

Get fields from page!

Hello eveyone!!

 

I have done a custom link in Lead;

/apex/DataLeads

 

 

DataLeads is a .Page where I want to show the name and the phone of the lead, but I don't know how can I get the Id of the Lead.

 

I mean, In the Lead Jonh, I do click in the link and a pop-up (has to) show his name and phone

 

Any idea?!?

 

Thanks in advance!!

Best Answer chosen by Admin (Salesforce Developers) 
wesnoltewesnolte

Hey

 

The answer depends on where you're coming from, but I think you're starting ini the lead page. Your link should be,

 

/apex/Dataleads?id={!Lead.id}

 

Your dataleads page will also have to use a standardcontroller of type 'lead' .

 

Cheers,

Wes