+ Start a Discussion
chaitanya salesforcecrmchaitanya salesforcecrm 

I have created a Searchpage using Visualforce. Now i want to add one of the selected record from that page to a Lead. How to achieve this Scenario

I have created a Searchpage using Visualforce. Now i want to add one of the selected record from that page to a Lead. How to achieve this Scenario.
I am getting the records on visualforce page from Custom object Condo__c. The displayed records have a value called Name. i want to get the name value and update it to a Lookup field "Unit" in Lead Object.
User-added image
above is the screenshot of the search page. i have some filters on it to >display data. now i want to select one record from the list through checkbox >and when user clicks on "select" the "Unit Name" value in the record should be >updates to Unit lookup Field in Lead.Note: I am displaying this page as Inline >Visualforce Page in the Lead Detail page layout.
Shaijan ThomasShaijan Thomas
oncheck if you want to update, use java script to do that
thanks