Skip to content

Instantly share code, notes, and snippets.

@alirobe
Created January 23, 2012 01:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alirobe/590b3e1f0092333fb95e to your computer and use it in GitHub Desktop.
Save alirobe/590b3e1f0092333fb95e to your computer and use it in GitHub Desktop.
sharepoint form checkbox show/hide
//<script src="/hosted/Style%20Library/jquery-1.7.1.min.js" type="text/javascript"></script><script type="text/javascript">
//jQuery.noConflict();
jQuery(function(){
var cfg= {
'CRM':['CRM Access'],
'SharePoint':['SharePoint Access'],
'GP':['GP Security Role','GP Access Level','GP Company Name'],
'Replace Existing User':['Existing user email address']
}
for(var i in cfg) {
var $el = jQuery('.ms-RadioText[title="'+i+'"]');
$el.change(function(){
var myCfg=cfg[jQuery(this).attr('title')];
for(var i in myCfg){
jQuery('.ms-standardheader::contains("'+myCfg[i]+'")')
.parent()
.parent()
.toggle();
}
});
$el.change();
}
// })</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment