<?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 hide an incident state (canceled) from the list view? in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/how-to-hide-an-incident-state-canceled-from-the-list-view/m-p/1632362#M289288</link>
    <description>&lt;P&gt;I had an error in the script, fixed it and worked, thank you!!&lt;/P&gt;</description>
    <pubDate>Mon, 04 Jul 2022 15:44:07 GMT</pubDate>
    <dc:creator>Jesus Nava</dc:creator>
    <dc:date>2022-07-04T15:44:07Z</dc:date>
    <item>
      <title>How to hide an incident state (canceled) from the list view?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-hide-an-incident-state-canceled-from-the-list-view/m-p/1632351#M289277</link>
      <description>&lt;P&gt;Hello experts, please I need your help, how can I hide the choice canceled from the "state" dropdown from the list view?&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/187722i766439246E3F3D83/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 17:25:06 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-hide-an-incident-state-canceled-from-the-list-view/m-p/1632351#M289277</guid>
      <dc:creator>Jesus Nava</dc:creator>
      <dc:date>2022-07-01T17:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide an incident state (canceled) from the list view?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-hide-an-incident-state-canceled-from-the-list-view/m-p/1632352#M289278</link>
      <description>&lt;P&gt;Hi there!&lt;/P&gt;
&lt;P&gt;Do you want to hide this drop down value only for list view or also for form view?&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Palak&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 17:34:13 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-hide-an-incident-state-canceled-from-the-list-view/m-p/1632352#M289278</guid>
      <dc:creator>Palak Gupta</dc:creator>
      <dc:date>2022-07-01T17:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide an incident state (canceled) from the list view?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-hide-an-incident-state-canceled-from-the-list-view/m-p/1632353#M289279</link>
      <description>&lt;P&gt;Hello Palak,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I already hid it from the form view using a UI policy but cannot find a way to hide it from the list view,&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 17:48:28 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-hide-an-incident-state-canceled-from-the-list-view/m-p/1632353#M289279</guid>
      <dc:creator>Jesus Nava</dc:creator>
      <dc:date>2022-07-01T17:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide an incident state (canceled) from the list view?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-hide-an-incident-state-canceled-from-the-list-view/m-p/1632354#M289280</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;If you don't need "Cancelled" option you can make this choice as "Inactive-true" for incident table record.&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/187720i06F635358A4C7A24/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 18:01:41 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-hide-an-incident-state-canceled-from-the-list-view/m-p/1632354#M289280</guid>
      <dc:creator>Palak Gupta</dc:creator>
      <dc:date>2022-07-01T18:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide an incident state (canceled) from the list view?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-hide-an-incident-state-canceled-from-the-list-view/m-p/1632355#M289281</link>
      <description>Hi,
You can use below client script,
function onCellEdit(sysIDs, table, oldValues, newValue, callback) {   
       var saveAndClose = true;   
       if (newValue == "take value of cancel") {   
        alert("You cannot change the state to Closed from the list view.");   
   saveAndClose = false;   
       }   
       callback(saveAndClose); 
}
Hope this will help.</description>
      <pubDate>Fri, 01 Jul 2022 18:05:35 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-hide-an-incident-state-canceled-from-the-list-view/m-p/1632355#M289281</guid>
      <dc:creator>Community Alums</dc:creator>
      <dc:date>2022-07-01T18:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide an incident state (canceled) from the list view?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-hide-an-incident-state-canceled-from-the-list-view/m-p/1632356#M289282</link>
      <description>&lt;P&gt;is there a way just to hide it from there? the issue is that if I set it as inactive it will also be inactive in the form, I just need to hide it from the list view&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 18:06:28 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-hide-an-incident-state-canceled-from-the-list-view/m-p/1632356#M289282</guid>
      <dc:creator>Jesus Nava</dc:creator>
      <dc:date>2022-07-01T18:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide an incident state (canceled) from the list view?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-hide-an-incident-state-canceled-from-the-list-view/m-p/1632357#M289283</link>
      <description>&lt;P&gt;okay, then you can write onCellEdit client script to achieve that.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 18:11:57 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-hide-an-incident-state-canceled-from-the-list-view/m-p/1632357#M289283</guid>
      <dc:creator>Palak Gupta</dc:creator>
      <dc:date>2022-07-01T18:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide an incident state (canceled) from the list view?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-hide-an-incident-state-canceled-from-the-list-view/m-p/1632358#M289284</link>
      <description>&lt;P&gt;Hello Abhay, I have this:&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #f1c40f;"&gt;Field Name: cancel&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;function onCellEdit(sysIDs, table, oldValues, newValue, callback) {&lt;BR /&gt;&amp;nbsp; var saveAndClose = true;&lt;BR /&gt;&amp;nbsp;//Type appropriate comment here, and begin script below&lt;BR /&gt;&amp;nbsp;if(newValue == '8'){&lt;BR /&gt;&amp;nbsp; &amp;nbsp; alert("You cannot change the status from the list view"),&lt;BR /&gt;&amp;nbsp; &amp;nbsp; saveAndClose = false;}&lt;BR /&gt;&amp;nbsp;}&lt;BR /&gt;&amp;nbsp;callback(saveAndClose);&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but now from the list view that field is uneditable, am I doing something wrong?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 18:53:40 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-hide-an-incident-state-canceled-from-the-list-view/m-p/1632358#M289284</guid>
      <dc:creator>Jesus Nava</dc:creator>
      <dc:date>2022-07-01T18:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide an incident state (canceled) from the list view?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-hide-an-incident-state-canceled-from-the-list-view/m-p/1632359#M289285</link>
      <description>&lt;P&gt;Hi &lt;SN-MENTION class="sn-mention" table="live_profile" sysid="ba0ec0afdb674d10b5d6e6be139619da"&gt;@Jesus Nava&lt;/SN-MENTION&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May I ask why are you taking field name as "Cancel"?&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Palak&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 10:00:35 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-hide-an-incident-state-canceled-from-the-list-view/m-p/1632359#M289285</guid>
      <dc:creator>Palak Gupta</dc:creator>
      <dc:date>2022-07-04T10:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide an incident state (canceled) from the list view?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-hide-an-incident-state-canceled-from-the-list-view/m-p/1632360#M289286</link>
      <description>&lt;P&gt;&lt;SN-MENTION class="sn-mention" table="live_profile" sysid="ba0ec0afdb674d10b5d6e6be139619da"&gt;@Jesus Nava&lt;/SN-MENTION&gt; same script i have used &amp;amp; tested , able to edit on list view and change any state except cancel, working code on my PDI&lt;/P&gt;
&lt;P&gt;function onCellEdit(sysIDs, table, oldValues, newValue, callback) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; var saveAndClose = true;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; if (newValue == &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; alert("You cannot change the state to Closed from the list view.");&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; saveAndClose = false;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; callback(saveAndClose);&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 14:04:17 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-hide-an-incident-state-canceled-from-the-list-view/m-p/1632360#M289286</guid>
      <dc:creator>Community Alums</dc:creator>
      <dc:date>2022-07-04T14:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide an incident state (canceled) from the list view?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-hide-an-incident-state-canceled-from-the-list-view/m-p/1632361#M289287</link>
      <description>&lt;P&gt;Sorry my bad, the field name I selected is State, not Cancel&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 15:35:38 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-hide-an-incident-state-canceled-from-the-list-view/m-p/1632361#M289287</guid>
      <dc:creator>Jesus Nava</dc:creator>
      <dc:date>2022-07-04T15:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide an incident state (canceled) from the list view?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-hide-an-incident-state-canceled-from-the-list-view/m-p/1632362#M289288</link>
      <description>&lt;P&gt;I had an error in the script, fixed it and worked, thank you!!&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 15:44:07 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-hide-an-incident-state-canceled-from-the-list-view/m-p/1632362#M289288</guid>
      <dc:creator>Jesus Nava</dc:creator>
      <dc:date>2022-07-04T15:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide an incident state (canceled) from the list view?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-hide-an-incident-state-canceled-from-the-list-view/m-p/3549723#M1256491</link>
      <description>&lt;P&gt;This post is very useful. Thanks for it! I'm just leaving a print screen for a quick remark that might help others.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BrunoPer_0-1779877171579.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/517566i1092CC14E4540F81/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BrunoPer_0-1779877171579.png" alt="BrunoPer_0-1779877171579.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2026 10:19:38 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-hide-an-incident-state-canceled-from-the-list-view/m-p/3549723#M1256491</guid>
      <dc:creator>BrunoPer</dc:creator>
      <dc:date>2026-05-27T10:19:38Z</dc:date>
    </item>
  </channel>
</rss>

