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
Martin Johnson 9Martin Johnson 9 

update a field via javascript list button

Hello, 
I am looking for some support in creating a list button on a custom object (specifically the code)
I have added a customer List button with the behaviour to execute Javascript. 

the idea is that the user would go to our custom page called PD Records and in the list check boxes and then click this button .. the button would run the script to update 2 fields 
1. closure outcome = Insuficiant data
2. Job Status = Closed

I dont understand javascript and would love some pointers 

Or alternatively a better solution :) 

This solution would allow users to mass edit the records based on the main screen view and not need to go into every job and manually update 
 
HarshHarsh (Salesforce Developers) 
Hi Martin,

Hope your query is answered below. 

Please check the stack exchange link given below, which has the same kind of requirement.

https://salesforce.stackexchange.com/questions/339859/custom-button-to-update-field-on-account-object 

Please mark it as Best Answer if the above information was helpful.

Thanks.