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

Like to add contact email value from Lookup field .

Hi ,


I am currently looking for a way to populate contact's email field value through Lookup using Javascript. 


Also, I am successfully getting values but process is lengthy as follow :

#Created Custom object 

#Storing email from contact into custom object via Trigger 

#Lookup relationship in contact with custom object and updating lookup field via trigger as well .

#Created VF page to select email value though lookup (only to achieve requirement for selecting contact's email via lookup :) .)


But , I guess I could achieve this using JavaScript as well .


This requirement is similar to standard functionality which is available using 'send an email ' button , which gives ' cc ' field to select values through contact lookup and returning emails only .


Any idea , on how to achieve it through JS or another way different from my unique approach .


Many Thanks ,


Still waiting for the response .