How to hide Dynamics portal weblink sets
Here i am going to explain how to hide NAV bar button by using javascipt.
After adding below script on Home web template, "DES Tools" tab will disappear.
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript">
var loggedInUserRole = '{{
user.roles }}';
var webLinktitle='DES Tools';
$("#navbar
li")
.each(function () {
if ($(this).find("a").is("[title=webLinktitle]")) {
$(this).remove();
}
});
</script>
Comments
Post a Comment