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
rfgrfg 

How to create a popup to select related records?

Seems like this should be easy to do but I can't figure it out.

I have a custom object called eVoter. eVoter requires a related Contact Id to save. A Contact can have more than one related eVoter record. eVoter stores the related Contact ID, but Contact does not store any reference to the eVoter object.

I want to create a button or link on the Contact detail page that would pull up a list of all eVoter records that are related to the given Contact record (by searching for the matching contact ID), allow the user to select the correct record, and then link to the selected eVoter detail page. It seems like this should not be complicated but I can't find an example to get me started. Can somebody point me to some example code for creating a link or button like this?