<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Hide new button of related list based on count in Community Central forum</title>
    <link>https://www.servicenow.com/community/community-central-forum/hide-new-button-of-related-list-based-on-count/m-p/3092438#M1509</link>
    <description>&lt;P&gt;i have a requirement to hide a new button of related list(outage). onnincident record's related list if we have one outage then new button should be hidden.&lt;/P&gt;</description>
    <pubDate>Thu, 31 Oct 2024 12:35:56 GMT</pubDate>
    <dc:creator>patil uv</dc:creator>
    <dc:date>2024-10-31T12:35:56Z</dc:date>
    <item>
      <title>Hide new button of related list based on count</title>
      <link>https://www.servicenow.com/community/community-central-forum/hide-new-button-of-related-list-based-on-count/m-p/3092438#M1509</link>
      <description>&lt;P&gt;i have a requirement to hide a new button of related list(outage). onnincident record's related list if we have one outage then new button should be hidden.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 12:35:56 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/hide-new-button-of-related-list-based-on-count/m-p/3092438#M1509</guid>
      <dc:creator>patil uv</dc:creator>
      <dc:date>2024-10-31T12:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Hide new button of related list based on count</title>
      <link>https://www.servicenow.com/community/community-central-forum/hide-new-button-of-related-list-based-on-count/m-p/3092479#M1512</link>
      <description>&lt;P&gt;You should be able to do this as follows:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. Right-click on any column heading on your Related list and Configure=&amp;gt;List control=&amp;gt;Omit New button&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. Check &lt;STRONG&gt;Omit New &lt;/STRONG&gt;checkbox&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. Write your script in the &lt;STRONG&gt;Omit New condition&lt;/STRONG&gt;&amp;nbsp;Script field (if not on your form configure the form to show it)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you have never done this before this video is a decent walkthrough of the process:&amp;nbsp;&lt;A href="https://www.servicenow.com/community/developer-blog/how-to-hide-new-button-from-related-lists-using-list-control/ba-p/2435914" target="_blank" rel="noopener"&gt;https://www.servicenow.com/community/developer-blog/how-to-hide-new-button-from-related-lists-using-list-control/ba-p/2435914&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 13:07:59 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/hide-new-button-of-related-list-based-on-count/m-p/3092479#M1512</guid>
      <dc:creator>Paul Curwen</dc:creator>
      <dc:date>2024-10-31T13:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Hide new button of related list based on count</title>
      <link>https://www.servicenow.com/community/community-central-forum/hide-new-button-of-related-list-based-on-count/m-p/3092481#M1513</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Try this in Omit New Button&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Right click on the list header -&amp;gt; Configure -&amp;gt; list Control&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;var answer;
 if(current.getRowCount() &amp;gt; 0) {
    answer = true;
}
else {
  answer = false;
}&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AnuragTripathi_0-1730380016820.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/398603i68FB83C8B8B42F6B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AnuragTripathi_0-1730380016820.png" alt="AnuragTripathi_0-1730380016820.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 13:07:03 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/hide-new-button-of-related-list-based-on-count/m-p/3092481#M1513</guid>
      <dc:creator>Anurag Tripathi</dc:creator>
      <dc:date>2024-10-31T13:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Hide new button of related list based on count</title>
      <link>https://www.servicenow.com/community/community-central-forum/hide-new-button-of-related-list-based-on-count/m-p/3092488#M1514</link>
      <description>&lt;P&gt;HI Anurag,&lt;/P&gt;&lt;P&gt;thanks for quick reply. this works fine for native ui. i want to hide new button form related list which is present in service operation workspace.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 13:10:52 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/hide-new-button-of-related-list-based-on-count/m-p/3092488#M1514</guid>
      <dc:creator>patil uv</dc:creator>
      <dc:date>2024-10-31T13:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Hide new button of related list based on count</title>
      <link>https://www.servicenow.com/community/community-central-forum/hide-new-button-of-related-list-based-on-count/m-p/3092492#M1515</link>
      <description>&lt;P&gt;Check my reply here -&amp;gt;&amp;nbsp;&lt;A href="https://www.servicenow.com/community/developer-forum/how-to-hide-new-button-from-a-related-list-in-the-csm-workspace/m-p/2669529" target="_blank"&gt;Solved: How to hide New Button from a related list in the ... - ServiceNow Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Im not sure if there is a way to put condition there or not.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 13:14:09 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/hide-new-button-of-related-list-based-on-count/m-p/3092492#M1515</guid>
      <dc:creator>Anurag Tripathi</dc:creator>
      <dc:date>2024-10-31T13:14:09Z</dc:date>
    </item>
  </channel>
</rss>

