Salesforce Cookies #11 ( Salesforce Admin Special )

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

  1. First, navigate to the Field-Level security page for profile and click on Edit button so you can perform the check and uncheck
  2. Now from the Chrome menu > More Tools > Select ‘Developer Tools’ and Click on the Console tab / Press Ctrl+Shift+J.
  3. Copy and Past the above JS code in the console editor and hit the return key.
  4. Save the changes

20180328-122619_capture

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s