Last active
November 25, 2016 06:48
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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