Skip to content

Instantly share code, notes, and snippets.

@espl-saket
Last active November 25, 2016 06:48
Show Gist options
  • Save espl-saket/88f6f242176d65b294b4 to your computer and use it in GitHub Desktop.
Save espl-saket/88f6f242176d65b294b4 to your computer and use it in GitHub Desktop.
JS to select all checkboxes in Salesforce on the profile level FLS page
var jq = document.createElement('script');
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
setTimeout(function(){
var jQ = jQuery.noConflict();
jQ('input[type="checkbox"][title="Read Access"]').each(function(index,cb){jQ(cb).prop( "checked", true );});
jQ('[type="submit"][title="Save"]').click();
},3000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment