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
BPOORBPOOR 

Relate multiple contacts to activities in custom visual force page

In our Salesforce org, under "Activity Settings", the feature "Allow Users to Relate Multiple Contacts to Tasks and Events" is enabled. However, this seems to work only standard page layout when I click on "Log an Activity". We have a custom visual force page for a specific record type of the activity. On the name field (WhoId) on the visual force page, it is presenting only a lookup popup where I can select only one contact or lead, However, on the standard page layout on actiivty, it is displaying a popup where I can select multiple contacts or leads (up to 50). Is there anyway I can show the same popup on the custom visual force page where I can associate the activity to multiple contacts or leads? Below are the screenshots of the custom visualforce page popup and the standard page layout popup.

Lookup Popup on Visual force page:
=============================
 
Lookup Popup on Custom Visualforce Page.

Lookup popup on standard page:
=========================
Lookup Popup on Standard Page.
Can someone help?