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
Tom Blamire 24Tom Blamire 24 

VF page to return records as selectable options

Hi,

Having some issues and i'm stumped. Im trying to create a VF page on a custom junction object called Hashtags. Records in the Hashtags object only consist of Name and Account - simple you'd think!
What i am trying to achieve is when a user presses 'New', I want the view to be similar to a list view with checkboxes down the side so that they select what ones are related to that account. currently it appears as popup search box which is no good.

Can anyone please help me??
 
James LoghryJames Loghry
This problem is solved typically using a wrapper class.  The wrapper class is an inner class in your controller that contains a boolean member variable for determining if the record is selected, along with a member variable of the object (in your case hashtags).  See the following documentation for an example: https://developer.salesforce.com/page/Wrapper_Class