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
Matthew AllenMatthew Allen 

List button to change multiple records


I have a Javescript button that basically just ticks a box that in turn triggers a Process Builder to update a date field with todays date and a text field withthe Users name. This works on a contact by contact basis on the contact page...

I have created a list view button using the same code so that multiple contacts could get edited with the same date and user stamp, however it doesn't work..

The code I am using is this

alert("Details Correct Stamp in Process");
var update_Contact = new sforce.SObject("Contact");
update_Contact.Id = "{!Contact.Id}";
update_Contact.Details_Correct_No_Change__c = true;

alert("Contact Stamped - Thank you");

Very basic, but am I missing some extra code to get it to work for multiple contacts at a time?