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

Popular posts from this blog

Connecting Dynamics 365 Web api using external HTML page

Get azure blob files inside Sub Directories

Interview questions on MS CRM