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
DharaneshDharanesh 

Checking multiple checkboxes on page load

Hello Team,
I have a scenario where I am loading country names on the VF page from a custom metadata object and checkboxes next to it. Ideally users would check the box.

Now I would need to query another object  x which will contain some country names from the list of countries from the custom metadata object and when the page loads I would like to check the box next to the country names on the VF page to only the coutries which are in comman between the custom metadata object and this another object x.

Any thoughts on how this can be achieved?
Thanks