<?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: Setting UI Action Color in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/setting-ui-action-color/m-p/1819678#M476604</link>
    <description>&lt;P&gt;Hi &lt;SN-MENTION class="sn-mention" table="live_profile" sysid="13c19ce9dbbc0d54be625ac2ca9619ea"&gt;@Guiherme&lt;/SN-MENTION&gt; ,&lt;/P&gt;
&lt;P&gt;No need of Client scripts if you just want to change the color of your UI Action button on the form...no client script in necessary. There's a field called "Form style" as seen in your screenshot and contains a few styles already OOB. One is "Destructive" which is red...so set your reject button to that style and that one is done.&lt;/P&gt;
&lt;P&gt;For the Green version...you'd have to create that...please see this thread and specifically look for Chuck's response that gives details on how to add other colors:&amp;nbsp;&lt;A href="https://community.servicenow.com/community?id=community_question&amp;amp;sys_id=d2494725db5cdbc01dcaf3231f9619e4" rel=""&gt;https://community.servicenow.com/community?id=community_question&amp;amp;sys_id=d2494725db5cdbc01dcaf3231f9619e4&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Example :&lt;/P&gt;
&lt;P&gt;UI Action for approve:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/45470i3D17B136C62714CE/image-size/large?v=v2&amp;amp;px=999" srcset="/community/image/serverpage/image-id/45470i3D17B136C62714CE/image-size/large?v=v2&amp;amp;px=999 1.0x" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Mark my answer correct &amp;amp; Helpful, if Applicable.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Thanks,&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Sandeep&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Sep 2022 13:54:36 GMT</pubDate>
    <dc:creator>Community Alums</dc:creator>
    <dc:date>2022-09-09T13:54:36Z</dc:date>
    <item>
      <title>Setting UI Action Color</title>
      <link>https://www.servicenow.com/community/developer-forum/setting-ui-action-color/m-p/1819677#M476603</link>
      <description>&lt;P&gt;How do I set the color for UI Action buttons?&lt;BR /&gt;I do not see an option for it on the UI Action.&lt;BR /&gt;&lt;BR /&gt;I tried Client Scripts but I see 2 problems with them:&lt;BR /&gt;&amp;nbsp;- They run before the page loads, so the button objects do not exist yet&lt;BR /&gt;&amp;nbsp;- They do not have access to DOM, document or any object in the page.&lt;BR /&gt;&lt;BR /&gt;I tried this solution and variants but nothing worked.&lt;BR /&gt;&lt;A href="https://servicenowguru.com/scripting/client-scripts-scripting/change-form-button-color/"&gt;https://servicenowguru.com/scripting/client-scripts-scripting/change-form-button-color/&lt;/A&gt;&lt;BR /&gt;I always get this error when using &lt;CODE&gt;console.log(e)&lt;/CODE&gt; inside of &lt;CODE&gt;catch(e){}&lt;/CODE&gt;:&lt;BR /&gt;&lt;CODE&gt;TypeError: $$ is not a function&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 13:47:04 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/setting-ui-action-color/m-p/1819677#M476603</guid>
      <dc:creator>GuiReis</dc:creator>
      <dc:date>2022-09-09T13:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Setting UI Action Color</title>
      <link>https://www.servicenow.com/community/developer-forum/setting-ui-action-color/m-p/1819678#M476604</link>
      <description>&lt;P&gt;Hi &lt;SN-MENTION class="sn-mention" table="live_profile" sysid="13c19ce9dbbc0d54be625ac2ca9619ea"&gt;@Guiherme&lt;/SN-MENTION&gt; ,&lt;/P&gt;
&lt;P&gt;No need of Client scripts if you just want to change the color of your UI Action button on the form...no client script in necessary. There's a field called "Form style" as seen in your screenshot and contains a few styles already OOB. One is "Destructive" which is red...so set your reject button to that style and that one is done.&lt;/P&gt;
&lt;P&gt;For the Green version...you'd have to create that...please see this thread and specifically look for Chuck's response that gives details on how to add other colors:&amp;nbsp;&lt;A href="https://community.servicenow.com/community?id=community_question&amp;amp;sys_id=d2494725db5cdbc01dcaf3231f9619e4" rel=""&gt;https://community.servicenow.com/community?id=community_question&amp;amp;sys_id=d2494725db5cdbc01dcaf3231f9619e4&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Example :&lt;/P&gt;
&lt;P&gt;UI Action for approve:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/45470i3D17B136C62714CE/image-size/large?v=v2&amp;amp;px=999" srcset="/community/image/serverpage/image-id/45470i3D17B136C62714CE/image-size/large?v=v2&amp;amp;px=999 1.0x" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Mark my answer correct &amp;amp; Helpful, if Applicable.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Thanks,&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Sandeep&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 13:54:36 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/setting-ui-action-color/m-p/1819678#M476604</guid>
      <dc:creator>Community Alums</dc:creator>
      <dc:date>2022-09-09T13:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Setting UI Action Color</title>
      <link>https://www.servicenow.com/community/developer-forum/setting-ui-action-color/m-p/1819679#M476605</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;you need to ensure Isolate Script field is set to false for your client script to allow jquery to run&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/45464i701AD65FC3D2E447/image-size/large?v=v2&amp;amp;px=999" srcset="/community/image/serverpage/image-id/45464i701AD65FC3D2E447/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;Regards&lt;BR /&gt;Ankur&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 13:55:32 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/setting-ui-action-color/m-p/1819679#M476605</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2022-09-09T13:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Setting UI Action Color</title>
      <link>https://www.servicenow.com/community/developer-forum/setting-ui-action-color/m-p/1819680#M476606</link>
      <description>&lt;P&gt;I did Isolate the script and it didn't work.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 13:56:11 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/setting-ui-action-color/m-p/1819680#M476606</guid>
      <dc:creator>GuiReis</dc:creator>
      <dc:date>2022-09-09T13:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: Setting UI Action Color</title>
      <link>https://www.servicenow.com/community/developer-forum/setting-ui-action-color/m-p/1819681#M476607</link>
      <description>&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/45477iC04A69A3A859D872/image-size/large?v=v2&amp;amp;px=999" srcset="/community/image/serverpage/image-id/45477iC04A69A3A859D872/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;Where is that???&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 13:59:23 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/setting-ui-action-color/m-p/1819681#M476607</guid>
      <dc:creator>GuiReis</dc:creator>
      <dc:date>2022-09-09T13:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Setting UI Action Color</title>
      <link>https://www.servicenow.com/community/developer-forum/setting-ui-action-color/m-p/1819682#M476608</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;
&lt;P&gt;You can change the colour from form style - to destructive(red) or green . If it not visible on your UI action form then first try to add the "form style" field from the form designer and then the field will be visible where you can change the colour&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 14:07:01 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/setting-ui-action-color/m-p/1819682#M476608</guid>
      <dc:creator>Maharshi Chatte</dc:creator>
      <dc:date>2022-09-09T14:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Setting UI Action Color</title>
      <link>https://www.servicenow.com/community/developer-forum/setting-ui-action-color/m-p/1819683#M476609</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 14:13:30 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/setting-ui-action-color/m-p/1819683#M476609</guid>
      <dc:creator>GuiReis</dc:creator>
      <dc:date>2022-09-09T14:13:30Z</dc:date>
    </item>
  </channel>
</rss>

