{"id":3589,"date":"2013-03-25T05:59:49","date_gmt":"2013-03-25T05:59:49","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/?p=3589"},"modified":"2013-03-25T05:59:49","modified_gmt":"2013-03-25T05:59:49","slug":"adding-hyperlink-on-search-select-advanced-field-in-view-mode","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2013\/03\/25\/adding-hyperlink-on-search-select-advanced-field-in-view-mode\/","title":{"rendered":"Adding Hyperlink on Search Select Advanced Field in View Mode"},"content":{"rendered":"<p>One fine day one of our client came up with a new requirement. The requirement was to convert a Search Select Advanced<strong> <\/strong>field value to a hyperlink for a custom entity. To understand the requirement let us consider a standard entity <strong>Case<\/strong> as we all are quite familiar with the same. When we create a case then we can see the Company and Person fields as a Hyperlink in a view mode. Please refer the below screen shot for the same:<br \/>\n<a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2013\/03\/Image12.jpg\"><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-full wp-image-3602\" title=\"Image1\" src=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2013\/03\/Image12.jpg\" alt=\"\" width=\"828\" height=\"321\" \/><\/a><br \/>\nThis is quite user-friendly as user can directly navigate to that particular Company or Person from the case context without taking much efforts. This is a functionality in Sage CRM for the standard entities only. But now the same can be implemented for a custom entity as well.<br \/>\nWe have a custom entity <strong>Contract<\/strong>. This Contract entity has a Search Select Advance field <strong>Contract Name. <\/strong>This <strong>Contract Name <\/strong>field is displayed on the Company Summary screen which needs to be a hyperlink in a view mode. Refer the below screen shot for the same:<a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2013\/03\/Image21.jpg\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-3597\" title=\"Image2\" src=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2013\/03\/Image21.jpg\" alt=\"\" width=\"941\" height=\"300\" \/><\/a><br \/>\n<span style=\"line-height: 1.6em;\">Where the Contract Name is a hyperlink which on click navigates to the Contract summary page.<\/span><br \/>\nWe have written the code which will implement the above for you. All you have to do is just follow the simple steps given below:<\/p>\n<ol start=\"1\">\n<li>Log in to CRM as an Administrator.<\/li>\n<li>Navigate to Administrator| Customization| Company<\/li>\n<li>Click on <strong>Screens <\/strong>Tab<\/li>\n<li>Click on the <strong>Company Entry Screen. <\/strong>The Below screen will get displayed.<a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2013\/03\/Image3.jpg\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-3595\" title=\"Image3\" src=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2013\/03\/Image3.jpg\" alt=\"\" width=\"1042\" height=\"543\" \/><\/a><\/li>\n<li>Copy the Code and Paste the below code in the <strong>Create Script<\/strong> for the custom entity filed (in our example it is Contract Name):<\/li>\n<\/ol>\n<p>\/\/<strong>&#8216;Create Script<\/strong> in Contract Field Company<br \/>\nvar sAct= new String(Values(&#8220;Act&#8221;));<br \/>\nif(sAct==&#8221;&#8221; || sAct==&#8221;undefined&#8221; || sAct==&#8221;&#8221;)sAct=&#8221;&#8221;;<br \/>\nvar ContractID = new String(Values(&#8220;comp_contract&#8221;));<br \/>\nif(ContractID==&#8221;&#8221; || ContractID==&#8221;undefined&#8221; || ContractID==&#8221;&#8221;)ContractID=&#8221;&#8221;;<br \/>\nvar ContractSummmaryURL = eWare.URL(&#8220;ContractNumber\/ContractNumberSummary.asp&#8221;)<br \/>\nCaption =&#8221;Contract : &lt;input type=hidden name=_hidenContractNumber id=_hidenContractNumber value=&#8221;+ContractID+&#8221;&gt;&#8221;<br \/>\nCaption += &#8220;&lt;input type=hidden name=_HiddenContractSURL id=_HiddenContractSURL value=&#8221;+ContractSummmaryURL+&#8221;&gt;&#8221;<br \/>\nCaption += &#8220;&lt;input type=hidden name=_HiddenAct id=_HiddenAct value=&#8221;+sAct+&#8221;&gt;&#8221;<\/p>\n<ol start=\"6\">\n<li>Copy the Code and Paste the same in the <strong>Custom Content<\/strong> for the same entity.<\/li>\n<\/ol>\n<p>\/\/&#8217;In Company <strong style=\"line-height: 1.6em;\">Custom content<\/strong><br \/>\n&lt; script &gt;<br \/>\njQuery(document).ready(function(){<br \/>\nvar sAct = $(&#8216;#_HiddenAct&#8217;).val();<br \/>\nvar ContractID = $(&#8216;#_hidenContractNumber&#8217;).val();<br \/>\nvar ContractSummaryURL = $(&#8216;#_HiddenContractSURL&#8217;).val();<br \/>\nvar ContractHTML = $(&#8216;#_HIDDENcomp_ContractnumberTEXT&#8217;).val();<br \/>\nsURL = ContractSummaryURL + &#8220;&amp;Contract_ContractNumberID=&#8221;+ContractID;<br \/>\nsContractHTML = &#8220;&lt;a href=&#8221;+sURL+&#8221;&gt;&#8221;+ContractHTML +&#8221;&lt;\/a&gt;&#8221;;<br \/>\nif(sAct==&#8221;200&#8243; || sAct==&#8221;520&#8243;)<br \/>\n$(&#8216;#_Datacomp_Contractnumber&#8217;).html(sContractHTML);<br \/>\n});<br \/>\n&lt; \/script &gt;<br \/>\n<strong>Note:<\/strong> You will have to replace your custom entity field name in the above code.<\/p>\n<ol start=\"7\">\n<li>Click on Update<\/li>\n<li>Click on Save.<\/li>\n<\/ol>\n<p>If you click on the Change button on the Company Summary screen, the screen will be displayed in an edit mode. The Contract Name Search Select Advance field will also be displayed in an edit mode. Our above code will allow you to navigate to the particular contract summary when the link is clicked even in the edit mode as well. This is also a standard functionality for the Standard Search Select Advance fields in Sage CRM.<br \/>\nThe above code will just work like a standard Search Select Advanced\u00a0hyper-linked\u00a0Field in Sage CRM.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One fine day one of our client came up with a new requirement. The requirement was to convert a Search Select Advanced field value to a hyperlink for a custom entity. To understand the requirement let us consider a standard entity Case as we all are quite familiar with the same. When we create a\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2013\/03\/25\/adding-hyperlink-on-search-select-advanced-field-in-view-mode\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[177,332,354],"tags":[],"class_list":["post-3589","post","type-post","status-publish","format-standard","hentry","category-hyperlink","category-sage-crm","category-search-select-advanced"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Adding Hyperlink on Search Select Advanced Field in View Mode - 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\/2013\/03\/25\/adding-hyperlink-on-search-select-advanced-field-in-view-mode\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Adding Hyperlink on Search Select Advanced Field in View Mode - Sage CRM \u2013 Tips, Tricks and Components\" \/>\n<meta property=\"og:description\" content=\"One fine day one of our client came up with a new requirement. The requirement was to convert a Search Select Advanced field value to a hyperlink for a custom entity. To understand the requirement let us consider a standard entity Case as we all are quite familiar with the same. When we create a\u2026 Read More &raquo;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2013\/03\/25\/adding-hyperlink-on-search-select-advanced-field-in-view-mode\/\" \/>\n<meta property=\"og:site_name\" content=\"Sage CRM \u2013 Tips, Tricks and Components\" \/>\n<meta property=\"article:published_time\" content=\"2013-03-25T05:59:49+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2013\/03\/Image12.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=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2013\/03\/25\/adding-hyperlink-on-search-select-advanced-field-in-view-mode\/\",\"url\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2013\/03\/25\/adding-hyperlink-on-search-select-advanced-field-in-view-mode\/\",\"name\":\"Adding Hyperlink on Search Select Advanced Field in View Mode - Sage CRM \u2013 Tips, Tricks and Components\",\"isPartOf\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2013\/03\/25\/adding-hyperlink-on-search-select-advanced-field-in-view-mode\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2013\/03\/25\/adding-hyperlink-on-search-select-advanced-field-in-view-mode\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2013\/03\/Image12.jpg\",\"datePublished\":\"2013-03-25T05:59:49+00:00\",\"author\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/e7ff1c8f4763b47730d6bc5e74d59c1f\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2013\/03\/25\/adding-hyperlink-on-search-select-advanced-field-in-view-mode\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2013\/03\/25\/adding-hyperlink-on-search-select-advanced-field-in-view-mode\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2013\/03\/25\/adding-hyperlink-on-search-select-advanced-field-in-view-mode\/#primaryimage\",\"url\":\"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2013\/03\/Image12.jpg\",\"contentUrl\":\"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2013\/03\/Image12.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2013\/03\/25\/adding-hyperlink-on-search-select-advanced-field-in-view-mode\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Adding Hyperlink on Search Select Advanced Field in View Mode\"}]},{\"@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":"Adding Hyperlink on Search Select Advanced Field in View Mode - 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\/2013\/03\/25\/adding-hyperlink-on-search-select-advanced-field-in-view-mode\/","og_locale":"en_US","og_type":"article","og_title":"Adding Hyperlink on Search Select Advanced Field in View Mode - Sage CRM \u2013 Tips, Tricks and Components","og_description":"One fine day one of our client came up with a new requirement. The requirement was to convert a Search Select Advanced field value to a hyperlink for a custom entity. To understand the requirement let us consider a standard entity Case as we all are quite familiar with the same. When we create a\u2026 Read More &raquo;","og_url":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2013\/03\/25\/adding-hyperlink-on-search-select-advanced-field-in-view-mode\/","og_site_name":"Sage CRM \u2013 Tips, Tricks and Components","article_published_time":"2013-03-25T05:59:49+00:00","og_image":[{"url":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2013\/03\/Image12.jpg","type":"","width":"","height":""}],"author":"greysagecrm","twitter_card":"summary_large_image","twitter_misc":{"Written by":"greysagecrm","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2013\/03\/25\/adding-hyperlink-on-search-select-advanced-field-in-view-mode\/","url":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2013\/03\/25\/adding-hyperlink-on-search-select-advanced-field-in-view-mode\/","name":"Adding Hyperlink on Search Select Advanced Field in View Mode - Sage CRM \u2013 Tips, Tricks and Components","isPartOf":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2013\/03\/25\/adding-hyperlink-on-search-select-advanced-field-in-view-mode\/#primaryimage"},"image":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2013\/03\/25\/adding-hyperlink-on-search-select-advanced-field-in-view-mode\/#primaryimage"},"thumbnailUrl":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2013\/03\/Image12.jpg","datePublished":"2013-03-25T05:59:49+00:00","author":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/e7ff1c8f4763b47730d6bc5e74d59c1f"},"breadcrumb":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2013\/03\/25\/adding-hyperlink-on-search-select-advanced-field-in-view-mode\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.greytrix.com\/blogs\/sagecrm\/2013\/03\/25\/adding-hyperlink-on-search-select-advanced-field-in-view-mode\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2013\/03\/25\/adding-hyperlink-on-search-select-advanced-field-in-view-mode\/#primaryimage","url":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2013\/03\/Image12.jpg","contentUrl":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2013\/03\/Image12.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2013\/03\/25\/adding-hyperlink-on-search-select-advanced-field-in-view-mode\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/"},{"@type":"ListItem","position":2,"name":"Adding Hyperlink on Search Select Advanced Field in View Mode"}]},{"@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\/3589","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=3589"}],"version-history":[{"count":0,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/posts\/3589\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/media?parent=3589"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/categories?post=3589"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/tags?post=3589"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}