{"id":12924,"date":"2016-06-21T06:54:44","date_gmt":"2016-06-21T06:54:44","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/?p=12924"},"modified":"2016-06-21T06:54:44","modified_gmt":"2016-06-21T06:54:44","slug":"hide-options-for-specific-users-from-menu-bar","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2016\/06\/21\/hide-options-for-specific-users-from-menu-bar\/","title":{"rendered":"Hide options for specific users from Menu bar"},"content":{"rendered":"<p style=\"text-align: justify;\"><a href=\"http:\/\/www.sagesoftware.co.in\/product-sage-crm\" target=\"_blank\" rel=\"noopener\">Sage CRM<\/a> has number of built in functions using which user can make most out of the system. Similarly, using client side API we can help our customers by incorporating their requirement with the help of scripting.<\/p>\n<p style=\"text-align: justify;\"><em><strong><span style=\"color: #993300;\">New Stuff:<\/span>\u00a0<\/strong><\/em><a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2016\/06\/21\/center-align-listgrid-data\/\" target=\"_blank\">Center Align List\/Grid Data<\/a><\/p>\n<p style=\"text-align: justify;\">Recently, for one of our customers we wanted to restrict Menu bar for specific users. To fulfill this requirement we followed the below mentioned steps:<\/p>\n<p style=\"text-align: justify;\"><strong>1.<\/strong> Go to <strong>Administration section | Customization | Translation<\/strong>.<br \/>\n<strong>2.<\/strong> Create a new translation with the below given details.<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2016\/06\/Img11.jpg\"><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-large wp-image-12925\" src=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2016\/06\/Img11-1024x326.jpg\" alt=\"Img1\" width=\"595\" height=\"189\" \/><\/a><\/p>\n<p style=\"text-align: justify;\"><strong>3.<\/strong> Here in above screen, you have to enter User IDs in \u201cUS Translation\u201d and \u201cUK Translation\u201d field to restrict users to view the options.<br \/>\n<strong>4.<\/strong> Click on Save button.<br \/>\n<strong>5.<\/strong> The below script will actually execute the function to hide the Menu options from CRM. Hence, we need to create a .JS file.<\/p>\n<p style=\"text-align: justify;\"><em>Function Hidemenus()<\/em><br \/>\n<em>{<\/em><br \/>\n<em>if(document.getElementsByClassName(&#8220;TOPHEADING TitleIcon&#8221;))<\/em><br \/>\n<em>{<\/em><br \/>\n<em> document.getElementsByClassName (&#8220;TOPHEADING TitleIcon&#8221;) [0].innerHTML=&#8221;&#8221;;<\/em><br \/>\n<em>}<\/em><br \/>\n<em>var sUserid=new String(crm.getArg(&#8220;key4&#8221;,crm.url()));<\/em><br \/>\n<em>var sUserIdFromTrans=new String(crm.getTrans(&#8220;UserProfiles&#8221;,&#8221;UserProfiles&#8221;));<\/em><\/p>\n<p><em>if(sUserIdFromTrans.indexOf(sUserid)&gt;=0)<\/em><br \/>\n<em> {<\/em><br \/>\n<em> if(document.getElementsByClassName(&#8220;er_new&#8221;)[0])<\/em><br \/>\n<em> {<\/em><br \/>\n<em> document.getElementsByClassName(&#8220;er_new&#8221;)[0].innerHTML=&#8221;&#8221;;<\/em><br \/>\n<em> }<\/em><br \/>\n<em> if(document.getElementById(&#8220;find-list&#8221;))<\/em><br \/>\n<em> {<\/em><br \/>\n<em> document.getElementById(&#8220;find-list&#8221;).style.visibility = &#8220;hidden&#8221;;<\/em><br \/>\n<em> }<\/em><br \/>\n<em> \/\/Hide Recent-List<\/em><br \/>\n<em> if($(&#8216;#recent-list&#8217;))<\/em><br \/>\n<em> {<\/em><br \/>\n<em> $(&#8216;#recent-list&#8217;).hide()<\/em><br \/>\n<em> }<\/em><br \/>\n<em> \/\/Hide Notification <\/em><br \/>\n<em> $(&#8216;#notiflabel&#8217;).each(function()<\/em><br \/>\n<em> {<\/em><br \/>\n<em> $(this).parent().hide();<\/em><br \/>\n<em> });<\/em><br \/>\n<em> }<\/em><br \/>\n<em>If (document.getElementsByClassName(&#8220;TOPCAPTION TOPHEADING TOPCONTENTVALUE&#8221;)[0])<\/em><br \/>\n<em>{<\/em><br \/>\n<em>var InteractiveHTML=document.getElementsByClassName(&#8220;TOPCAPTION TOPHEADING TOPCONTENTVALUE&#8221;)[0].innerHTML;<\/em><br \/>\n<em> InteractiveHTML=InteractiveHTML.replace(&#8220;&lt;h2&gt;Interactive&amp;nbsp;Dashboard&lt;\/h2&gt;&#8221;,&#8221;&#8221;); <\/em><br \/>\n<em>document.getElementsByClassName (&#8220;TOPCAPTION TOPHEADING TOPCONTENTVALUE&#8221;)[0].innerHTML=InteractiveHTML;<\/em><br \/>\n<em> }<\/em><br \/>\n<em> }<\/em><\/p>\n<p style=\"text-align: justify;\"><strong>6.<\/strong> Copy the above file under Custom Pages and log in to CRM to see the below effect.<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2016\/06\/IMG31.jpg\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-12926\" src=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2016\/06\/IMG31.jpg\" alt=\"IMG3\" width=\"252\" height=\"138\" \/><\/a><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #993300;\"><strong><em>Also Read:<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify;\"><strong>1.<\/strong> <a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2016\/02\/18\/highlight-fields-using-client-side-api-in-sage-crm\/\" target=\"_blank\">Highlight fields using Client side API in Sage CRM<\/a><br \/>\n<strong>2.<\/strong> <a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/11\/05\/javascript-to-print-amount-in-words\/\" target=\"_blank\">JavaScript to print Amount (In Words)<\/a><br \/>\n<strong>3.<\/strong> <a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/09\/04\/calling-javascript-function-from-workflow-progress-screen\/\" target=\"_blank\">Calling Javascript function from Workflow progress screen<\/a><br \/>\n<strong>4.<\/strong> <a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/12\/08\/tips-and-tricks-about-calling-function-in-custom-content-of-sage-crm-7-2\/\" target=\"_blank\">Tips and Tricks about Calling function in Custom Content of Sage CRM 7.2<\/a><br \/>\n<strong>5.<\/strong> <a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/08\/02\/changing-link-text-of-url-fields\/\" target=\"_blank\">Changing Link text of URL fields<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sage CRM has number of built in functions using which user can make most out of the system. Similarly, using client side API we can help our customers by incorporating their requirement with the help of scripting. New Stuff:\u00a0Center Align List\/Grid Data Recently, for one of our customers we wanted to restrict Menu bar for\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2016\/06\/21\/hide-options-for-specific-users-from-menu-bar\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[172,332,1,417],"tags":[1325,1326,1327,1333,1334,1592,1881],"class_list":["post-12924","post","type-post","status-publish","format-standard","hentry","category-hide","category-sage-crm","category-uncategorized","category-user","tag-hide-menu-bar","tag-hide-menu-bar-for-specific-users","tag-hide-menu-bar-in-sage-crm","tag-hide-recent-button","tag-hide-recent-button-of-sage-crm","tag-menu-bar-in-sage-crm","tag-recent-button"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Hide options for specific users from Menu bar - Sage CRM \u2013 Tips, Tricks and Components<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2016\/06\/21\/hide-options-for-specific-users-from-menu-bar\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Hide options for specific users from Menu bar - Sage CRM \u2013 Tips, Tricks and Components\" \/>\n<meta property=\"og:description\" content=\"Sage CRM has number of built in functions using which user can make most out of the system. Similarly, using client side API we can help our customers by incorporating their requirement with the help of scripting. New Stuff:\u00a0Center Align List\/Grid Data Recently, for one of our customers we wanted to restrict Menu bar for\u2026 Read More &raquo;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2016\/06\/21\/hide-options-for-specific-users-from-menu-bar\/\" \/>\n<meta property=\"og:site_name\" content=\"Sage CRM \u2013 Tips, Tricks and Components\" \/>\n<meta property=\"article:published_time\" content=\"2016-06-21T06:54:44+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2016\/06\/Img11-1024x326.jpg\" \/>\n<meta name=\"author\" content=\"greysagecrm\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"greysagecrm\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2016\/06\/21\/hide-options-for-specific-users-from-menu-bar\/\",\"url\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2016\/06\/21\/hide-options-for-specific-users-from-menu-bar\/\",\"name\":\"Hide options for specific users from Menu bar - Sage CRM \u2013 Tips, Tricks and Components\",\"isPartOf\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2016\/06\/21\/hide-options-for-specific-users-from-menu-bar\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2016\/06\/21\/hide-options-for-specific-users-from-menu-bar\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2016\/06\/Img11-1024x326.jpg\",\"datePublished\":\"2016-06-21T06:54:44+00:00\",\"author\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/e7ff1c8f4763b47730d6bc5e74d59c1f\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2016\/06\/21\/hide-options-for-specific-users-from-menu-bar\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2016\/06\/21\/hide-options-for-specific-users-from-menu-bar\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2016\/06\/21\/hide-options-for-specific-users-from-menu-bar\/#primaryimage\",\"url\":\"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2016\/06\/Img11-1024x326.jpg\",\"contentUrl\":\"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2016\/06\/Img11-1024x326.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2016\/06\/21\/hide-options-for-specific-users-from-menu-bar\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Hide options for specific users from Menu bar\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#website\",\"url\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/\",\"name\":\"Sage CRM \u2013 Tips, Tricks and Components\",\"description\":\"Explore the possibilities with Sage CRM insights through our comprehensive blogs. As a leading Sage partner, Greytrix helps businesses maximize their Sage CRM potential with its rich expertise and immense knowledge. Here, you will find blogs that feature expert advice, tips &amp; tricks, best practices, and comprehensive guides on customizing and configuring Sage CRM for your business. Stay informed with our regular updates and expert insights!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/e7ff1c8f4763b47730d6bc5e74d59c1f\",\"name\":\"greysagecrm\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c3b4325cb326e36467f945b9b9adf2bb85e907fe092d42eb36b39743b492e626?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c3b4325cb326e36467f945b9b9adf2bb85e907fe092d42eb36b39743b492e626?s=96&d=mm&r=g\",\"caption\":\"greysagecrm\"},\"url\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/author\/greysagecrm\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Hide options for specific users from Menu bar - Sage CRM \u2013 Tips, Tricks and Components","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2016\/06\/21\/hide-options-for-specific-users-from-menu-bar\/","og_locale":"en_US","og_type":"article","og_title":"Hide options for specific users from Menu bar - Sage CRM \u2013 Tips, Tricks and Components","og_description":"Sage CRM has number of built in functions using which user can make most out of the system. Similarly, using client side API we can help our customers by incorporating their requirement with the help of scripting. New Stuff:\u00a0Center Align List\/Grid Data Recently, for one of our customers we wanted to restrict Menu bar for\u2026 Read More &raquo;","og_url":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2016\/06\/21\/hide-options-for-specific-users-from-menu-bar\/","og_site_name":"Sage CRM \u2013 Tips, Tricks and Components","article_published_time":"2016-06-21T06:54:44+00:00","og_image":[{"url":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2016\/06\/Img11-1024x326.jpg","type":"","width":"","height":""}],"author":"greysagecrm","twitter_card":"summary_large_image","twitter_misc":{"Written by":"greysagecrm","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2016\/06\/21\/hide-options-for-specific-users-from-menu-bar\/","url":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2016\/06\/21\/hide-options-for-specific-users-from-menu-bar\/","name":"Hide options for specific users from Menu bar - Sage CRM \u2013 Tips, Tricks and Components","isPartOf":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2016\/06\/21\/hide-options-for-specific-users-from-menu-bar\/#primaryimage"},"image":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2016\/06\/21\/hide-options-for-specific-users-from-menu-bar\/#primaryimage"},"thumbnailUrl":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2016\/06\/Img11-1024x326.jpg","datePublished":"2016-06-21T06:54:44+00:00","author":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/e7ff1c8f4763b47730d6bc5e74d59c1f"},"breadcrumb":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2016\/06\/21\/hide-options-for-specific-users-from-menu-bar\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.greytrix.com\/blogs\/sagecrm\/2016\/06\/21\/hide-options-for-specific-users-from-menu-bar\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2016\/06\/21\/hide-options-for-specific-users-from-menu-bar\/#primaryimage","url":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2016\/06\/Img11-1024x326.jpg","contentUrl":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2016\/06\/Img11-1024x326.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2016\/06\/21\/hide-options-for-specific-users-from-menu-bar\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/"},{"@type":"ListItem","position":2,"name":"Hide options for specific users from Menu bar"}]},{"@type":"WebSite","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#website","url":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/","name":"Sage CRM \u2013 Tips, Tricks and Components","description":"Explore the possibilities with Sage CRM insights through our comprehensive blogs. As a leading Sage partner, Greytrix helps businesses maximize their Sage CRM potential with its rich expertise and immense knowledge. Here, you will find blogs that feature expert advice, tips &amp; tricks, best practices, and comprehensive guides on customizing and configuring Sage CRM for your business. Stay informed with our regular updates and expert insights!","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/e7ff1c8f4763b47730d6bc5e74d59c1f","name":"greysagecrm","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c3b4325cb326e36467f945b9b9adf2bb85e907fe092d42eb36b39743b492e626?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c3b4325cb326e36467f945b9b9adf2bb85e907fe092d42eb36b39743b492e626?s=96&d=mm&r=g","caption":"greysagecrm"},"url":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/author\/greysagecrm\/"}]}},"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/posts\/12924","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/comments?post=12924"}],"version-history":[{"count":0,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/posts\/12924\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/media?parent=12924"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/categories?post=12924"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/tags?post=12924"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}