Inline editing is super easy in Salesforce Lightning but not from a related list on a record page. So this is a quick and easy way to without a controller create a VF page that can be used as a button to update a field selected records in a related list. Just flip the object name and fields and you are off to the races. And this example is straight off of the Salesforce site examples but I removed the extension class so that a test class is not necessary.
Update Nov 2019 -Here are the steps:
- Create the VF page, make sure to go in and make it available for Lightning (Available for Lightning Experience, Lightning Communities, and the mobile app)
- Navigate to the related list object in setup
- Buttons, Links, and Actions –> New Button or Link
- Click ‘Display Type’ to ‘List Button’ and make sure to keep the ‘Display Checkboxes’ checked on/true
- Click the ‘Content Source’ to ‘Visualforce Page’ and then in Content select the page you created. Add the Name and Label and Save
- Navigate to the parent Object whose page layout will show the child related list (the object that you just created the button on)
- Click Related Lists, click the wrench of the related list, like the ‘Buttons’ section to expand, and then click and add the new button you created
- Ok / Save / Done
Mass-Updating Records with a Custom List Controller
StackExchange post: https://salesforce.stackexchange.com/questions/146973/run-a-mass-action-on-multiple-records-in-a-list-view
Worked like a charm, thank you!!