+ Start a Discussion
Adam RycroftAdam Rycroft 

List Button on custom object

Hello,

Can someone point me in the right direction for this:

I have a custom object called PSH_Properties__c, and a checkbox field called Create_Check_1__c. 

I'm trying to create a list button that when records are selected, the Create_Check_1__c checkbox on each record is marked  true. 
Narender Singh(Nads)Narender Singh(Nads)
Hi Adam,
You can run a Javascript code on click of that LIST BUTTON. From that javascript code get the list of those selected record IDs and pass that list of record IDs to an apex class and in that class write your custom code to set the checkbox field by querying your records.

Thanks!