<?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 Re: How to omit a new button by setting condition's in omit new condition from a related list? in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/how-to-omit-a-new-button-by-setting-condition-s-in-omit-new/m-p/3197455#M1184693</link>
    <description>&lt;P&gt;In the Continual Improvement Management module, we can create new CIM tasks in the "Review" state. This seems to be an oversight by ServiceNow. We may be able to use above method to remove the "New" button in the Review state. Just thought I should let everyone know.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Mar 2025 00:45:15 GMT</pubDate>
    <dc:creator>AJ2025</dc:creator>
    <dc:date>2025-03-06T00:45:15Z</dc:date>
    <item>
      <title>How to omit a new button by setting condition's in omit new condition from a related list?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-omit-a-new-button-by-setting-condition-s-in-omit-new/m-p/1742194#M399120</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently I am using Helsinki version of SNOW, in this version we have a Advanced list control with scripts.&lt;/P&gt;&lt;P&gt;When I am trying to omit a &lt;STRONG&gt;New button of a Related List&lt;/STRONG&gt; using script for a Closed state condition, it is hiding for closed state as well as rest of the states.&lt;/P&gt;&lt;P&gt;The thing is, it is hiding in each state otherwise it is visible in each state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using below script, please see the attached screen.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/204007iA2C206DE0278F631/image-size/large?v=v2&amp;amp;px=999" srcset="/community/image/serverpage/image-id/204007iA2C206DE0278F631/image-size/large?v=v2&amp;amp;px=999 1.0x" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please if you get my issue, let me know the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vikas Ambulgekar&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2016 14:10:00 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-omit-a-new-button-by-setting-condition-s-in-omit-new/m-p/1742194#M399120</guid>
      <dc:creator>Community Alums</dc:creator>
      <dc:date>2016-09-09T14:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to omit a new button by setting condition's in omit new condition from a related list?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-omit-a-new-button-by-setting-condition-s-in-omit-new/m-p/1742195#M399121</link>
      <description>&lt;P&gt;Try, &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;var answer=false;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;if(current.u_state=='Closed') //Make sure Closed is the state 'name'&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;{answer=true;}&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Sep 2016 14:21:46 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-omit-a-new-button-by-setting-condition-s-in-omit-new/m-p/1742195#M399121</guid>
      <dc:creator>snowtech1</dc:creator>
      <dc:date>2016-09-09T14:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to omit a new button by setting condition's in omit new condition from a related list?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-omit-a-new-button-by-setting-condition-s-in-omit-new/m-p/1742196#M399122</link>
      <description>&lt;P&gt;I think you need to give answer; at the end. Like this: (From Helsinki Product Documentation: &lt;A href="https://docs.servicenow.com/bundle/helsinki-servicenow-platform/page/administer/list-administration/concept/c_AdvancedListControlWithScripts.html" title="https://docs.servicenow.com/bundle/helsinki-servicenow-platform/page/administer/list-administration/concept/c_AdvancedListControlWithScripts.html"&gt;Advanced list control with scripts&lt;/A&gt; )&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="_jivemacro_uid_14734407813782530 jive_macro_code jive_text_macro" data-renderedposition="50_8_1192_129" jivemacro_uid="_14734407813782530"&gt;&lt;P&gt;var answer ;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;if (&lt;SPAN style="color: #666666; font-family: arial, sans-serif;"&gt;current.u_state=='Closed'&lt;/SPAN&gt;) { //Do not remove the 'New' button&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; answer = false ;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;}&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;else { //Remove the 'New' button&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; answer = true ;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;}&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;answer ;&lt;/P&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;If that doesn't work, use parent object in place of current like said in the doc. I'm not an expert but this is how I would try. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_emote jive_macro" data-renderedposition="200_768.296875_16_16" src="https://www.servicenow.com/8.0.4.21bdc7e/images/emoticons/happy.png"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Sep 2016 17:07:29 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-omit-a-new-button-by-setting-condition-s-in-omit-new/m-p/1742196#M399122</guid>
      <dc:creator>veena_kvkk88</dc:creator>
      <dc:date>2016-09-09T17:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to omit a new button by setting condition's in omit new condition from a related list?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-omit-a-new-button-by-setting-condition-s-in-omit-new/m-p/1742197#M399123</link>
      <description>&lt;P&gt;Thanks Veena &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_emote jive_macro" data-renderedposition="8_103.21875_16_16" src="https://www.servicenow.com/8.0.4.21bdc7e/images/emoticons/happy.png"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;First I tried using current object but it's not worked, so I tried using parent object now it's working.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Thanks everyone &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_emote jive_macro" data-renderedposition="93_122_16_16" src="https://www.servicenow.com/8.0.4.21bdc7e/images/emoticons/happy.png"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Sep 2016 04:26:14 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-omit-a-new-button-by-setting-condition-s-in-omit-new/m-p/1742197#M399123</guid>
      <dc:creator>Community Alums</dc:creator>
      <dc:date>2016-09-12T04:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to omit a new button by setting condition's in omit new condition from a related list?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-omit-a-new-button-by-setting-condition-s-in-omit-new/m-p/1742198#M399124</link>
      <description>&lt;P&gt;use parent instead of current, works fine !!&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Oct 2017 17:35:11 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-omit-a-new-button-by-setting-condition-s-in-omit-new/m-p/1742198#M399124</guid>
      <dc:creator>ricardolinh</dc:creator>
      <dc:date>2017-10-03T17:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to omit a new button by setting condition's in omit new condition from a related list?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-omit-a-new-button-by-setting-condition-s-in-omit-new/m-p/1742199#M399125</link>
      <description>&lt;P&gt;I want to remove the new button from one module but keep it for other 2 modules.&lt;/P&gt;
&lt;P&gt;how should i do it?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 11:10:08 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-omit-a-new-button-by-setting-condition-s-in-omit-new/m-p/1742199#M399125</guid>
      <dc:creator>Mitisha1</dc:creator>
      <dc:date>2019-08-08T11:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to omit a new button by setting condition's in omit new condition from a related list?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-omit-a-new-button-by-setting-condition-s-in-omit-new/m-p/1742200#M399126</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;You can add lint to the existing&amp;nbsp;condition on New UI Action for that particular able&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;condition&amp;gt;&amp;amp;&amp;amp;(RP.getParameterValue('sysparm_userpref_module') !=sys_id of Module)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jagadeesh&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 09:19:05 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-omit-a-new-button-by-setting-condition-s-in-omit-new/m-p/1742200#M399126</guid>
      <dc:creator>Jagadeesh R1</dc:creator>
      <dc:date>2019-08-09T09:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to omit a new button by setting condition's in omit new condition from a related list?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-omit-a-new-button-by-setting-condition-s-in-omit-new/m-p/1742201#M399127</link>
      <description>&lt;P&gt;Select the option "Omit New button" to remove the button from module.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/204006i0E0217CDCB49E000/image-size/large?v=v2&amp;amp;px=999" srcset="/community/image/serverpage/image-id/204006i0E0217CDCB49E000/image-size/large?v=v2&amp;amp;px=999 1.0x" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 13:16:24 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-omit-a-new-button-by-setting-condition-s-in-omit-new/m-p/1742201#M399127</guid>
      <dc:creator>ricardolinh</dc:creator>
      <dc:date>2019-08-09T13:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to omit a new button by setting condition's in omit new condition from a related list?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-omit-a-new-button-by-setting-condition-s-in-omit-new/m-p/1742202#M399128</link>
      <description>&lt;P&gt;where do you go in order to see this screen?&amp;nbsp; the screen that has the check box, "Omit New Button".&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 18:43:39 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-omit-a-new-button-by-setting-condition-s-in-omit-new/m-p/1742202#M399128</guid>
      <dc:creator>A_</dc:creator>
      <dc:date>2021-09-16T18:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to omit a new button by setting condition's in omit new condition from a related list?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-omit-a-new-button-by-setting-condition-s-in-omit-new/m-p/3197455#M1184693</link>
      <description>&lt;P&gt;In the Continual Improvement Management module, we can create new CIM tasks in the "Review" state. This seems to be an oversight by ServiceNow. We may be able to use above method to remove the "New" button in the Review state. Just thought I should let everyone know.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 00:45:15 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-omit-a-new-button-by-setting-condition-s-in-omit-new/m-p/3197455#M1184693</guid>
      <dc:creator>AJ2025</dc:creator>
      <dc:date>2025-03-06T00:45:15Z</dc:date>
    </item>
  </channel>
</rss>

