<?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: Hide UI Action on the basis of certain conditons in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/hide-ui-action-on-the-basis-of-certain-conditons/m-p/2774062#M1066931</link>
    <description>&lt;P&gt;it doesn't work, tried with your suggestion. it doesn't show the button itself when I do that.&lt;/P&gt;</description>
    <pubDate>Wed, 27 Dec 2023 12:34:10 GMT</pubDate>
    <dc:creator>Pratiksha Lang1</dc:creator>
    <dc:date>2023-12-27T12:34:10Z</dc:date>
    <item>
      <title>Hide UI Action on the basis of certain conditons</title>
      <link>https://www.servicenow.com/community/developer-forum/hide-ui-action-on-the-basis-of-certain-conditons/m-p/2774036#M1066922</link>
      <description>&lt;P&gt;I want to hide UI action on the basis of certain condition. I have written script include and I am calling that script include in UI action condition. It is not going in script include, I am not getting logs as well. Can anyone please help as it is not working as expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Script include :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; smdrsOlaScoringCompleted = &lt;/SPAN&gt;&lt;SPAN&gt;Class&lt;/SPAN&gt;&lt;SPAN&gt;.create();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;smdrsOlaScoringCompleted.prototype = {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; allowOlaScoring: &lt;/SPAN&gt;&lt;SPAN&gt;function&lt;/SPAN&gt;&lt;SPAN&gt;(current) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gs.info(&lt;/SPAN&gt;&lt;SPAN&gt;"@@@checking my script include"&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; inputOla = &lt;/SPAN&gt;&lt;SPAN&gt;new&lt;/SPAN&gt; &lt;SPAN&gt;GlideRecord&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'x_amspi_smdrs_app_input_ola'&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; inputOla.addQuery(&lt;/SPAN&gt;&lt;SPAN&gt;'number'&lt;/SPAN&gt;&lt;SPAN&gt;, current.sys_id);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; inputOla.addQuery(&lt;/SPAN&gt;&lt;SPAN&gt;'active'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'true'&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gs.info(&lt;/SPAN&gt;&lt;SPAN&gt;"@@@checking my script include 1"&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; inputOla.query();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;while&lt;/SPAN&gt;&lt;SPAN&gt; (inputOla.next()) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gs.info(&lt;/SPAN&gt;&lt;SPAN&gt;"@@@checking my script include 2"&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; (inputOla.frequency == &lt;/SPAN&gt;&lt;SPAN&gt;'Daily'&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gs.info(&lt;/SPAN&gt;&lt;SPAN&gt;"@@@checking my script include 3"&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; inputOla.addEncodedQuery(&lt;/SPAN&gt;&lt;SPAN&gt;'sys_created_onONToday@javascript&amp;amp;colon;gs.beginningOfToday()@javascript&amp;amp;colon;gs.endOfToday()^state=1^ORstate=2'&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;"true"&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; },&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; type: &lt;/SPAN&gt;&lt;SPAN&gt;'smdrsOlaScoringCompleted'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;};&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;UI Action :&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PratikshaLang1_0-1703678557366.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/316119i9D1EB626549391E9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PratikshaLang1_0-1703678557366.png" alt="PratikshaLang1_0-1703678557366.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 27 Dec 2023 12:03:36 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/hide-ui-action-on-the-basis-of-certain-conditons/m-p/2774036#M1066922</guid>
      <dc:creator>Pratiksha Lang1</dc:creator>
      <dc:date>2023-12-27T12:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Hide UI Action on the basis of certain conditons</title>
      <link>https://www.servicenow.com/community/developer-forum/hide-ui-action-on-the-basis-of-certain-conditons/m-p/2774039#M1066923</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/232864"&gt;@Pratiksha Lang1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try to call this function from background script and see it the log is working or not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;instead of current pass the gliderecord object of a record&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OR&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have some suggestion to your Script as well&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Script Include&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;smdrsOlaScoringCompleted =&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Class&lt;/SPAN&gt;&lt;SPAN&gt;.create();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;smdrsOlaScoringCompleted.prototype = {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; allowOlaScoring:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;function&lt;/SPAN&gt;&lt;SPAN&gt;(current) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gs.info(&lt;/SPAN&gt;&lt;SPAN&gt;"@@@checking my script include"&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;inputOla =&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;new&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;GlideRecord&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'x_amspi_smdrs_app_input_ola'&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; inputOla.addQuery(&lt;/SPAN&gt;&lt;SPAN&gt;'number'&lt;/SPAN&gt;&lt;SPAN&gt;, current.sys_id);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; inputOla.addQuery(&lt;/SPAN&gt;&lt;SPAN&gt;'active'&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'true'&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gs.info(&lt;/SPAN&gt;&lt;SPAN&gt;"@@@checking my script include 1"&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; inputOla.query();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;while&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;(inputOla.next()) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gs.info(&lt;/SPAN&gt;&lt;SPAN&gt;"@@@checking my script include 2"&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;(inputOla.frequency ==&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'Daily'&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gs.info(&lt;/SPAN&gt;&lt;SPAN&gt;"@@@checking my script include 3"&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; inputOla.addEncodedQuery(&lt;/SPAN&gt;&lt;SPAN&gt;'sys_created_onONToday@javascript&amp;amp;colon;gs.beginningOfToday()@javascript&amp;amp;colon;gs.endOfToday()^state=1^ORstate=2'&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;SPAN&gt;;&amp;nbsp; &amp;nbsp;//return Boolean&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; },&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; type:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'smdrsOlaScoringCompleted'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;};&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In UI Action condition :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;new smdrsOlaScoringCompleted().allowOlaScoring(current)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;above line is enough instead of " new smdrsOlaScoringCompleted().allowOlaScoring(current) == 'true' "&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;Vipin Mathew&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 12:14:40 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/hide-ui-action-on-the-basis-of-certain-conditons/m-p/2774039#M1066923</guid>
      <dc:creator>vipinmathew</dc:creator>
      <dc:date>2023-12-27T12:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Hide UI Action on the basis of certain conditons</title>
      <link>https://www.servicenow.com/community/developer-forum/hide-ui-action-on-the-basis-of-certain-conditons/m-p/2774050#M1066926</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Script Include looks oke. Maybe it's the condition field and the usage or ||&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you update this using:&lt;/P&gt;
&lt;P&gt;current.isValidRecord() &amp;amp;&amp;amp; (current.state == 1 || current.state == 8 || current.state == 19 || current.state == -7) &amp;amp;&amp;amp; new smdrsOlaScoringCompleted().allowOlaScoring(current)&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 12:20:55 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/hide-ui-action-on-the-basis-of-certain-conditons/m-p/2774050#M1066926</guid>
      <dc:creator>Mark Roethof</dc:creator>
      <dc:date>2023-12-27T12:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Hide UI Action on the basis of certain conditons</title>
      <link>https://www.servicenow.com/community/developer-forum/hide-ui-action-on-the-basis-of-certain-conditons/m-p/2774051#M1066927</link>
      <description>&lt;P&gt;I just tested your Script Include = oke. So do look at the condition like I mentioned. When I test with a simple condition to just trigger the Script Include, works fine.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 12:22:45 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/hide-ui-action-on-the-basis-of-certain-conditons/m-p/2774051#M1066927</guid>
      <dc:creator>Mark Roethof</dc:creator>
      <dc:date>2023-12-27T12:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Hide UI Action on the basis of certain conditons</title>
      <link>https://www.servicenow.com/community/developer-forum/hide-ui-action-on-the-basis-of-certain-conditons/m-p/2774062#M1066931</link>
      <description>&lt;P&gt;it doesn't work, tried with your suggestion. it doesn't show the button itself when I do that.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 12:34:10 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/hide-ui-action-on-the-basis-of-certain-conditons/m-p/2774062#M1066931</guid>
      <dc:creator>Pratiksha Lang1</dc:creator>
      <dc:date>2023-12-27T12:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Hide UI Action on the basis of certain conditons</title>
      <link>https://www.servicenow.com/community/developer-forum/hide-ui-action-on-the-basis-of-certain-conditons/m-p/2774066#M1066933</link>
      <description>&lt;P&gt;Have you verified the state are correct? I just tested with one state on Incident, works immediately.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 12:37:37 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/hide-ui-action-on-the-basis-of-certain-conditons/m-p/2774066#M1066933</guid>
      <dc:creator>Mark Roethof</dc:creator>
      <dc:date>2023-12-27T12:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Hide UI Action on the basis of certain conditons</title>
      <link>https://www.servicenow.com/community/developer-forum/hide-ui-action-on-the-basis-of-certain-conditons/m-p/2774068#M1066934</link>
      <description>&lt;P&gt;Or did you perhaps miss any fields on UI Action, for example didn't select Form Button? Can you share a screenshot?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 12:38:56 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/hide-ui-action-on-the-basis-of-certain-conditons/m-p/2774068#M1066934</guid>
      <dc:creator>Mark Roethof</dc:creator>
      <dc:date>2023-12-27T12:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: Hide UI Action on the basis of certain conditons</title>
      <link>https://www.servicenow.com/community/developer-forum/hide-ui-action-on-the-basis-of-certain-conditons/m-p/2774072#M1066936</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/232864"&gt;@Pratiksha Lang1&lt;/a&gt;, Can you try calling the script include in the background script by passing the gliderecord object or sys_id and see if its printing any logs?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 12:41:05 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/hide-ui-action-on-the-basis-of-certain-conditons/m-p/2774072#M1066936</guid>
      <dc:creator>SunilKumar_P</dc:creator>
      <dc:date>2023-12-27T12:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Hide UI Action on the basis of certain conditons</title>
      <link>https://www.servicenow.com/community/developer-forum/hide-ui-action-on-the-basis-of-certain-conditons/m-p/2774080#M1066941</link>
      <description>&lt;P&gt;Now it is printing the logs but it is printing the logs which are only before while loop. state and everything which I have given is correct only.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 12:46:22 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/hide-ui-action-on-the-basis-of-certain-conditons/m-p/2774080#M1066941</guid>
      <dc:creator>Pratiksha Lang1</dc:creator>
      <dc:date>2023-12-27T12:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Hide UI Action on the basis of certain conditons</title>
      <link>https://www.servicenow.com/community/developer-forum/hide-ui-action-on-the-basis-of-certain-conditons/m-p/2774088#M1066943</link>
      <description>&lt;P&gt;&lt;EM&gt;inputOla.addQuery('number', current.sys_id);&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Number doesn't sound like a reference field? Though you are entering a sys_id to query. Can you verify that this is correct or that this is your mistake?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 12:48:51 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/hide-ui-action-on-the-basis-of-certain-conditons/m-p/2774088#M1066943</guid>
      <dc:creator>Mark Roethof</dc:creator>
      <dc:date>2023-12-27T12:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: Hide UI Action on the basis of certain conditons</title>
      <link>https://www.servicenow.com/community/developer-forum/hide-ui-action-on-the-basis-of-certain-conditons/m-p/2774091#M1066944</link>
      <description>&lt;P&gt;yes number is not a reference field&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 12:50:41 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/hide-ui-action-on-the-basis-of-certain-conditons/m-p/2774091#M1066944</guid>
      <dc:creator>Pratiksha Lang1</dc:creator>
      <dc:date>2023-12-27T12:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: Hide UI Action on the basis of certain conditons</title>
      <link>https://www.servicenow.com/community/developer-forum/hide-ui-action-on-the-basis-of-certain-conditons/m-p/2774103#M1066948</link>
      <description>&lt;P&gt;So than you're query is incorrect. Please fix it.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 12:54:53 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/hide-ui-action-on-the-basis-of-certain-conditons/m-p/2774103#M1066948</guid>
      <dc:creator>Mark Roethof</dc:creator>
      <dc:date>2023-12-27T12:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Hide UI Action on the basis of certain conditons</title>
      <link>https://www.servicenow.com/community/developer-forum/hide-ui-action-on-the-basis-of-certain-conditons/m-p/2774108#M1066950</link>
      <description>&lt;P&gt;Can you please help me in this case as in what object can I pass for the button visibility.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 12:58:32 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/hide-ui-action-on-the-basis-of-certain-conditons/m-p/2774108#M1066950</guid>
      <dc:creator>Pratiksha Lang1</dc:creator>
      <dc:date>2023-12-27T12:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Hide UI Action on the basis of certain conditons</title>
      <link>https://www.servicenow.com/community/developer-forum/hide-ui-action-on-the-basis-of-certain-conditons/m-p/2774111#M1066952</link>
      <description>&lt;P&gt;Now you are quering the number field (which is NOT a reference), with current.sys_id (which is a reference).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So what could you use to query? What would be correct? I don't know, since it's your custom application.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 12:59:56 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/hide-ui-action-on-the-basis-of-certain-conditons/m-p/2774111#M1066952</guid>
      <dc:creator>Mark Roethof</dc:creator>
      <dc:date>2023-12-27T12:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Hide UI Action on the basis of certain conditons</title>
      <link>https://www.servicenow.com/community/developer-forum/hide-ui-action-on-the-basis-of-certain-conditons/m-p/2774734#M1067150</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Any luck? Or still help needed?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2023 07:12:53 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/hide-ui-action-on-the-basis-of-certain-conditons/m-p/2774734#M1067150</guid>
      <dc:creator>Mark Roethof</dc:creator>
      <dc:date>2023-12-28T07:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Hide UI Action on the basis of certain conditons</title>
      <link>https://www.servicenow.com/community/developer-forum/hide-ui-action-on-the-basis-of-certain-conditons/m-p/2774790#M1067167</link>
      <description>&lt;P&gt;What I would suggest is add one condition at a time and test if it works fine. Start with the Script Include calling first and then add other conditions one by one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2023 08:44:12 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/hide-ui-action-on-the-basis-of-certain-conditons/m-p/2774790#M1067167</guid>
      <dc:creator>Rakesh18081</dc:creator>
      <dc:date>2023-12-28T08:44:12Z</dc:date>
    </item>
  </channel>
</rss>

