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
Shamrock SnowmanShamrock Snowman 

Button Click adds Candidate Names to embedded Vf page

I have a Vf page that contains search results of candidate names.  I am looking to create a button on this page that will send the candidate names (as links to their records) into an embedded Vf page on another custom object (called Orders).  Then, how do I code the embedded page to display these names?  

 

I'm not very literate in Apex or VisualForce, but any help or direction would be greatly appreciated.

Best Answer chosen by Admin (Salesforce Developers) 
SammyComesHereSammyComesHere

All you need is a lookup field of Contact (eg) on your embedded VF page and on click of that button store the Id of the Selected candidate in that lookup field on that custom object  .. that should do it.

All Answers

SammyComesHereSammyComesHere

All you need is a lookup field of Contact (eg) on your embedded VF page and on click of that button store the Id of the Selected candidate in that lookup field on that custom object  .. that should do it.

This was selected as the best answer
Shamrock SnowmanShamrock Snowman

Thank you!  I will give that a shot.