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
bprakashbprakash 

checkbox

If we have 3 items on a list  and each has a checkbox

if we select one item for one time and that item should not be shown next time when we are trying to select.

Is there Any way to do this?

I used the selection option class in controller class

Thanks

Bahnu



Best Answer chosen by Admin (Salesforce Developers) 
bob_buzzardbob_buzzard

Selectoptions inside a selectcheckboxes component is the correct way to do this.

 

You'll need to capture which checkboxes have been selected in the controller though, and either remove those from the list or if you are using an apex:repeat you can avoid rendering them.