Is there a way to mass-check Checkboxes when updating a Profile’s Object’s Field-Level Security?
Of course, there is. You can do it through your browser’s console. You just need the following Javascript code snippet which will do the job for you.
For the Edit Permission
var checkboxes = document.querySelectorAll(".displayedCol input"); for (var i = 0; i < checkboxes.length; i++) { checkboxes[i].checked=true; handleEditClick(checkboxes[i]); }
For the Read Permission Only
var checkboxes = document.querySelectorAll(".readonlyCol input"); for (var i = 0; i < checkboxes.length; i++) { checkboxes[i].checked=true; handleEditClick(checkboxes[i]); }
Running JS code snippet in the Google Chrome for updating the field-level permissions
- First, navigate to the Field-Level security page for profile and click on Edit button so you can perform the check and uncheck
- Now from the Chrome menu > More Tools > Select ‘Developer Tools’ and Click on the Console tab / Press Ctrl+Shift+J.
- Copy and Past the above JS code in the console editor and hit the return key.
- Save the changes
I am certified Salesforce Developer with Sales and Service cloud certifications. I am a true believer in #GivingBack principle and a Salesforce enthusiast. I am working as a member of our #SalesforceOhana to learn and help other fellow Trailblazers of the community to grow and learn.
“I’m a true believer in karma. You get what you give, whether it’s bad or good.”