{"id":115,"date":"2019-08-24T17:57:03","date_gmt":"2019-08-24T17:57:03","guid":{"rendered":"https:\/\/www.techcrm.in\/blogs\/?p=115"},"modified":"2020-09-08T14:55:48","modified_gmt":"2020-09-08T09:25:48","slug":"hide-select-and-cancel-buttons-from-relate-type-fields","status":"publish","type":"post","link":"https:\/\/www.techcrm.in\/blogs\/hide-select-and-cancel-buttons-from-relate-type-fields\/","title":{"rendered":"Hide Select and Cancel buttons from Relate type fields"},"content":{"rendered":"\n<p> Hide select and cancel buttons from relate type field. <\/p>\n\n\n\n<p>Steps are as below,<\/p>\n\n\n\n<p><strong>Step 1<\/strong>: To make it happen, you first need to check if you have a file editviewdefs.php under custom\/modules\/&lt;Desired_module&gt;\/metadata\/ if not, go to Admin &gt; Studio &gt; &lt;Desired_module&gt; &gt; Layout &gt; Edit View &gt; and press Save and Deploy.<\/p>\n\n\n\n<p>Then you will see that&nbsp; custom\/modules\/&lt;Desired_module&gt;\/metadata\/ has editviewdefs.php in it. Open it and search for the field you want to hide those buttons.<\/p>\n\n\n\n<p>If the field is defined in following manner, <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>0 => '&lt;YOUR_FIELD_NAME>',<\/code><\/pre>\n\n\n\n<p>Then you need to change it to, <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>0 => array('name' => '&lt;YOUR_FIELD_NAME>',\n'displayParams' => array('hide_Buttons' => true,)),<\/code><\/pre>\n\n\n\n<p>If your field is already an array like, <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>0 => \n          array (\n            'name' => '&lt;YOUR_FIELD_NAME>',\n            'studio' => 'visible',\n            'label' => '&lt;LBL_YOUR_FIELD_NAME>',\n), <\/code><\/pre>\n\n\n\n<p>just add following line in that array <\/p>\n\n\n\n<p> &#8216;displayParams&#8217; =&gt; array(&#8216;hide_Buttons&#8217; =&gt; true,)&nbsp; <\/p>\n\n\n\n<p>So it should look like following at the end <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>0 => \n          array (\n            'name' => '&lt;YOUR_FIELD_NAME>',\n            'studio' => 'visible',\n            'label' => '&lt;LBL_YOUR_FIELD_NAME>',\n            'displayParams' => array('hideButtons' => true),\n          ), <\/code><\/pre>\n\n\n\n<p><strong>Step 2<\/strong>: Go to Admin > Repair > Quick Repair and Rebuild. And done! <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"476\" height=\"134\" src=\"https:\/\/www.techcrm.in\/blogs\/wp-content\/uploads\/2019\/08\/blog-22-screen-1.jpg\" alt=\"\" class=\"wp-image-118\"\/><figcaption>Before Customization<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"455\" height=\"123\" src=\"https:\/\/www.techcrm.in\/blogs\/wp-content\/uploads\/2019\/08\/blog-22-screen-2-1.jpg\" alt=\"\" class=\"wp-image-120\"\/><figcaption> After Customization <\/figcaption><\/figure><\/div>\n\n\n\n<p>Hope you find this blog post helpful.<\/p>\n\n\n\n<p>Feel free to add comments and queries, that helps us to improve the quality of posts.<\/p>\n\n\n\n<p>You can contact us at&nbsp;<a rel=\"noreferrer noopener\" href=\"mailto:contact@urdhva-tech.com\" target=\"_blank\">info@techcrm.in<\/a><\/p>\n\n\n\n<p>Thank you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hide select and cancel buttons from relate type field. Steps are as below, Step 1: To make it happen, you first need to check if you have a file editviewdefs.php under custom\/modules\/&lt;Desired_module&gt;\/metadata\/ if not, go to Admin &gt; Studio &gt; &lt;Desired_module&gt; &gt; Layout &gt; Edit View &gt; and press Save and Deploy. Then you will [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,9],"tags":[20,12,13],"class_list":["post-115","post","type-post","status-publish","format-standard","hentry","category-sugarcrm","category-suitecrm","tag-relate-field","tag-sugarcrm","tag-suitecrm"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Hide Select and Cancel buttons from Relate type fields - TechCRM<\/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.techcrm.in\/blogs\/hide-select-and-cancel-buttons-from-relate-type-fields\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Hide Select and Cancel buttons from Relate type fields - TechCRM\" \/>\n<meta property=\"og:description\" content=\"Hide select and cancel buttons from relate type field. Steps are as below, Step 1: To make it happen, you first need to check if you have a file editviewdefs.php under custom\/modules\/&lt;Desired_module&gt;\/metadata\/ if not, go to Admin &gt; Studio &gt; &lt;Desired_module&gt; &gt; Layout &gt; Edit View &gt; and press Save and Deploy. Then you will [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.techcrm.in\/blogs\/hide-select-and-cancel-buttons-from-relate-type-fields\/\" \/>\n<meta property=\"og:site_name\" content=\"TechCRM\" \/>\n<meta property=\"article:published_time\" content=\"2019-08-24T17:57:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-09-08T09:25:48+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.techcrm.in\/blogs\/wp-content\/uploads\/2019\/08\/blog-22-screen-1.jpg\" \/>\n<meta name=\"author\" content=\"Navin Rakhonde\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Navin Rakhonde\" \/>\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.techcrm.in\/blogs\/hide-select-and-cancel-buttons-from-relate-type-fields\/\",\"url\":\"https:\/\/www.techcrm.in\/blogs\/hide-select-and-cancel-buttons-from-relate-type-fields\/\",\"name\":\"Hide Select and Cancel buttons from Relate type fields - TechCRM\",\"isPartOf\":{\"@id\":\"https:\/\/www.techcrm.in\/blogs\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.techcrm.in\/blogs\/hide-select-and-cancel-buttons-from-relate-type-fields\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.techcrm.in\/blogs\/hide-select-and-cancel-buttons-from-relate-type-fields\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.techcrm.in\/blogs\/wp-content\/uploads\/2019\/08\/blog-22-screen-1.jpg\",\"datePublished\":\"2019-08-24T17:57:03+00:00\",\"dateModified\":\"2020-09-08T09:25:48+00:00\",\"author\":{\"@id\":\"https:\/\/www.techcrm.in\/blogs\/#\/schema\/person\/992dfe427bb53dcdfd72dd80e3ef9dbc\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.techcrm.in\/blogs\/hide-select-and-cancel-buttons-from-relate-type-fields\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.techcrm.in\/blogs\/hide-select-and-cancel-buttons-from-relate-type-fields\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.techcrm.in\/blogs\/hide-select-and-cancel-buttons-from-relate-type-fields\/#primaryimage\",\"url\":\"https:\/\/www.techcrm.in\/blogs\/wp-content\/uploads\/2019\/08\/blog-22-screen-1.jpg\",\"contentUrl\":\"https:\/\/www.techcrm.in\/blogs\/wp-content\/uploads\/2019\/08\/blog-22-screen-1.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.techcrm.in\/blogs\/hide-select-and-cancel-buttons-from-relate-type-fields\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.techcrm.in\/blogs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SugarCRM\",\"item\":\"https:\/\/www.techcrm.in\/blogs\/category\/sugarcrm\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Hide Select and Cancel buttons from Relate type fields\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.techcrm.in\/blogs\/#website\",\"url\":\"https:\/\/www.techcrm.in\/blogs\/\",\"name\":\"TechCRM\",\"description\":\"Blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.techcrm.in\/blogs\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.techcrm.in\/blogs\/#\/schema\/person\/992dfe427bb53dcdfd72dd80e3ef9dbc\",\"name\":\"Navin Rakhonde\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.techcrm.in\/blogs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/9cc8fd1b948255055b85e5d41dabfc6e704f806d180a1e21cb8fb378e2f5c022?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/9cc8fd1b948255055b85e5d41dabfc6e704f806d180a1e21cb8fb378e2f5c022?s=96&d=mm&r=g\",\"caption\":\"Navin Rakhonde\"},\"sameAs\":[\"https:\/\/www.techcrm.in\/\"],\"url\":\"https:\/\/www.techcrm.in\/blogs\/author\/navin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Hide Select and Cancel buttons from Relate type fields - TechCRM","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.techcrm.in\/blogs\/hide-select-and-cancel-buttons-from-relate-type-fields\/","og_locale":"en_US","og_type":"article","og_title":"Hide Select and Cancel buttons from Relate type fields - TechCRM","og_description":"Hide select and cancel buttons from relate type field. Steps are as below, Step 1: To make it happen, you first need to check if you have a file editviewdefs.php under custom\/modules\/&lt;Desired_module&gt;\/metadata\/ if not, go to Admin &gt; Studio &gt; &lt;Desired_module&gt; &gt; Layout &gt; Edit View &gt; and press Save and Deploy. Then you will [&hellip;]","og_url":"https:\/\/www.techcrm.in\/blogs\/hide-select-and-cancel-buttons-from-relate-type-fields\/","og_site_name":"TechCRM","article_published_time":"2019-08-24T17:57:03+00:00","article_modified_time":"2020-09-08T09:25:48+00:00","og_image":[{"url":"https:\/\/www.techcrm.in\/blogs\/wp-content\/uploads\/2019\/08\/blog-22-screen-1.jpg"}],"author":"Navin Rakhonde","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Navin Rakhonde","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.techcrm.in\/blogs\/hide-select-and-cancel-buttons-from-relate-type-fields\/","url":"https:\/\/www.techcrm.in\/blogs\/hide-select-and-cancel-buttons-from-relate-type-fields\/","name":"Hide Select and Cancel buttons from Relate type fields - TechCRM","isPartOf":{"@id":"https:\/\/www.techcrm.in\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.techcrm.in\/blogs\/hide-select-and-cancel-buttons-from-relate-type-fields\/#primaryimage"},"image":{"@id":"https:\/\/www.techcrm.in\/blogs\/hide-select-and-cancel-buttons-from-relate-type-fields\/#primaryimage"},"thumbnailUrl":"https:\/\/www.techcrm.in\/blogs\/wp-content\/uploads\/2019\/08\/blog-22-screen-1.jpg","datePublished":"2019-08-24T17:57:03+00:00","dateModified":"2020-09-08T09:25:48+00:00","author":{"@id":"https:\/\/www.techcrm.in\/blogs\/#\/schema\/person\/992dfe427bb53dcdfd72dd80e3ef9dbc"},"breadcrumb":{"@id":"https:\/\/www.techcrm.in\/blogs\/hide-select-and-cancel-buttons-from-relate-type-fields\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.techcrm.in\/blogs\/hide-select-and-cancel-buttons-from-relate-type-fields\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.techcrm.in\/blogs\/hide-select-and-cancel-buttons-from-relate-type-fields\/#primaryimage","url":"https:\/\/www.techcrm.in\/blogs\/wp-content\/uploads\/2019\/08\/blog-22-screen-1.jpg","contentUrl":"https:\/\/www.techcrm.in\/blogs\/wp-content\/uploads\/2019\/08\/blog-22-screen-1.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.techcrm.in\/blogs\/hide-select-and-cancel-buttons-from-relate-type-fields\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.techcrm.in\/blogs\/"},{"@type":"ListItem","position":2,"name":"SugarCRM","item":"https:\/\/www.techcrm.in\/blogs\/category\/sugarcrm\/"},{"@type":"ListItem","position":3,"name":"Hide Select and Cancel buttons from Relate type fields"}]},{"@type":"WebSite","@id":"https:\/\/www.techcrm.in\/blogs\/#website","url":"https:\/\/www.techcrm.in\/blogs\/","name":"TechCRM","description":"Blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.techcrm.in\/blogs\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.techcrm.in\/blogs\/#\/schema\/person\/992dfe427bb53dcdfd72dd80e3ef9dbc","name":"Navin Rakhonde","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.techcrm.in\/blogs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/9cc8fd1b948255055b85e5d41dabfc6e704f806d180a1e21cb8fb378e2f5c022?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9cc8fd1b948255055b85e5d41dabfc6e704f806d180a1e21cb8fb378e2f5c022?s=96&d=mm&r=g","caption":"Navin Rakhonde"},"sameAs":["https:\/\/www.techcrm.in\/"],"url":"https:\/\/www.techcrm.in\/blogs\/author\/navin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.techcrm.in\/blogs\/wp-json\/wp\/v2\/posts\/115","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.techcrm.in\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techcrm.in\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techcrm.in\/blogs\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techcrm.in\/blogs\/wp-json\/wp\/v2\/comments?post=115"}],"version-history":[{"count":2,"href":"https:\/\/www.techcrm.in\/blogs\/wp-json\/wp\/v2\/posts\/115\/revisions"}],"predecessor-version":[{"id":121,"href":"https:\/\/www.techcrm.in\/blogs\/wp-json\/wp\/v2\/posts\/115\/revisions\/121"}],"wp:attachment":[{"href":"https:\/\/www.techcrm.in\/blogs\/wp-json\/wp\/v2\/media?parent=115"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techcrm.in\/blogs\/wp-json\/wp\/v2\/categories?post=115"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techcrm.in\/blogs\/wp-json\/wp\/v2\/tags?post=115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}