<?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: Approve/Reject buttons in Approve widget on Self-Service Portal in ITSM forum</title>
    <link>https://www.servicenow.com/community/itsm-forum/approve-reject-buttons-in-approve-widget-on-self-service-portal/m-p/580224#M152003</link>
    <description>&lt;P&gt;Hi!!&lt;/P&gt;
&lt;P&gt;I have the same problem with the&amp;nbsp;asterisk.&lt;/P&gt;
&lt;P&gt;Did you figure out how to fix it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jun 2020 12:14:12 GMT</pubDate>
    <dc:creator>Bel_n Dom_nguez</dc:creator>
    <dc:date>2020-06-09T12:14:12Z</dc:date>
    <item>
      <title>Approve/Reject buttons in Approve widget on Self-Service Portal</title>
      <link>https://www.servicenow.com/community/itsm-forum/approve-reject-buttons-in-approve-widget-on-self-service-portal/m-p/580220#M151999</link>
      <description>&lt;P&gt;On the Approve widget on the Service Portal index page, I am attempting to either 1. Make the Approve and Reject buttons force a comment or 2. remove the Approve/Reject buttons altogether. We want to keep the 'Options' so that the person can review the the item being approved. I have seen this done for the Approval info widget. My script-fu is not quite there yet, so I have been relying on snippets from other community posts and other areas. Essentially, if we keep the buttons, I need a comments box, and a way to make either just Reject or both Approve and Reject require a comment.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is what we currently have. Any assistance is greatly appreciated. My Test instance is in Madrid and my QA/Prod are in London.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://www.servicenow.com/community/s/skins/images/25215614E8A7E3518EC9EAED89F9D773/responsive_peak/images/image_not_found.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://www.servicenow.com/community/s/skins/images/25215614E8A7E3518EC9EAED89F9D773/responsive_peak/images/image_not_found.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://www.servicenow.com/community/s/skins/images/25215614E8A7E3518EC9EAED89F9D773/responsive_peak/images/image_not_found.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 20:08:10 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/approve-reject-buttons-in-approve-widget-on-self-service-portal/m-p/580220#M151999</guid>
      <dc:creator>BigMikeyVegas</dc:creator>
      <dc:date>2019-08-07T20:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Approve/Reject buttons in Approve widget on Self-Service Portal</title>
      <link>https://www.servicenow.com/community/itsm-forum/approve-reject-buttons-in-approve-widget-on-self-service-portal/m-p/580221#M152000</link>
      <description>&lt;P&gt;you can refer below to provide approve, rejection buttons in SP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://serviceportal.io/create-custom-action-buttons-service-portal/" rel="nofollow"&gt;https://serviceportal.io/create-custom-action-buttons-service-portal/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Sachin&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 20:42:37 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/approve-reject-buttons-in-approve-widget-on-self-service-portal/m-p/580221#M152000</guid>
      <dc:creator>sachin_namjoshi</dc:creator>
      <dc:date>2019-08-07T20:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Approve/Reject buttons in Approve widget on Self-Service Portal</title>
      <link>https://www.servicenow.com/community/itsm-forum/approve-reject-buttons-in-approve-widget-on-self-service-portal/m-p/580222#M152001</link>
      <description>&lt;P&gt;The answer has been found. There was a reply by @manishm on &lt;A href="https://community.servicenow.com/community?id=community_blog&amp;amp;sys_id=228da669dbd0dbc01dcaf3231f9619f3" target="_blank" rel="noopener noreferrer nofollow"&gt;this post&lt;/A&gt;. Edits to the code are in &lt;SPAN style="color: #ff0000;"&gt;Red&lt;/SPAN&gt;. I added an attachment to show the results.&lt;/P&gt;
&lt;P&gt;______________________________________________________________________________________&lt;/P&gt;
&lt;P class="ng-scope"&gt;Changes to Approvals Widget that shows up on the index page to capture Rejection Comments:&lt;/P&gt;
&lt;P class="ng-scope"&gt;&lt;STRONG&gt;Server Script&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="ng-scope"&gt;if (input.op == 'approved' || input.op == 'rejected') {&lt;BR /&gt;var app = new GlideRecord("sysapproval_approver");&lt;BR /&gt;if (app.get(input.target)) {&lt;BR /&gt;app.state = input.op;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;if (input.comments) {&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;app.comments = input.comments;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;app.update();&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;
&lt;P class="ng-scope"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="ng-scope"&gt;&lt;STRONG&gt;Client Controller&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="ng-scope"&gt;function ($scope, spUtil, spUIActionsExecuter,&amp;nbsp;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;spModal&lt;/STRONG&gt;&lt;/SPAN&gt;) {&lt;/P&gt;
&lt;P class="ng-scope"&gt;...&lt;/P&gt;
&lt;P class="ng-scope"&gt;$scope.reject = function(id, esigRequired) {&lt;BR /&gt;var requestParams = {&lt;BR /&gt;username: $scope.data.esignature.username,&lt;BR /&gt;userSysId: $scope.data.esignature.userSysId&lt;BR /&gt;};&lt;/P&gt;
&lt;P class="ng-scope"&gt;if($scope.data.esignature.e_sig_required &amp;amp;&amp;amp; esigRequired) {&lt;BR /&gt;spUIActionsExecuter.executeFormAction(ESIGNATURE.REJECT_SYS, "sysapproval_approver" , id, [] , "", requestParams).then(function(response) {&lt;BR /&gt;});&lt;BR /&gt;} else {&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;spModal.prompt("Please enter reason for rejection").then(function(rejectReason) {&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;$scope.data.op = "rejected";&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;$scope.data.target = id;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;$scope.data.comments = rejectReason;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;get();&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;});&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;
&lt;P class="ng-scope"&gt;...&lt;/P&gt;
&lt;P class="ng-scope"&gt;}&lt;/P&gt;
&lt;P class="ng-scope"&gt;______________________________________________________________________________________&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2019 15:06:21 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/approve-reject-buttons-in-approve-widget-on-self-service-portal/m-p/580222#M152001</guid>
      <dc:creator>BigMikeyVegas</dc:creator>
      <dc:date>2019-08-23T15:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Approve/Reject buttons in Approve widget on Self-Service Portal</title>
      <link>https://www.servicenow.com/community/itsm-forum/approve-reject-buttons-in-approve-widget-on-self-service-portal/m-p/580223#M152002</link>
      <description>&lt;P&gt;It really worked for me !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you so much!!&lt;/P&gt;
&lt;P&gt;But I have a challenge as attached in the screenshot. I was getting an asterisk after the reason for rejection. May I know what might be the reason I am getting&amp;nbsp;asterisk.&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/37086i7B86266E1539B4E4/image-size/large?v=v2&amp;amp;px=999" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 21:39:10 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/approve-reject-buttons-in-approve-widget-on-self-service-portal/m-p/580223#M152002</guid>
      <dc:creator>Archana1</dc:creator>
      <dc:date>2020-02-27T21:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: Approve/Reject buttons in Approve widget on Self-Service Portal</title>
      <link>https://www.servicenow.com/community/itsm-forum/approve-reject-buttons-in-approve-widget-on-self-service-portal/m-p/580224#M152003</link>
      <description>&lt;P&gt;Hi!!&lt;/P&gt;
&lt;P&gt;I have the same problem with the&amp;nbsp;asterisk.&lt;/P&gt;
&lt;P&gt;Did you figure out how to fix it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 12:14:12 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/approve-reject-buttons-in-approve-widget-on-self-service-portal/m-p/580224#M152003</guid>
      <dc:creator>Bel_n Dom_nguez</dc:creator>
      <dc:date>2020-06-09T12:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Approve/Reject buttons in Approve widget on Self-Service Portal</title>
      <link>https://www.servicenow.com/community/itsm-forum/approve-reject-buttons-in-approve-widget-on-self-service-portal/m-p/580225#M152004</link>
      <description>&lt;P&gt;Works perfectly!!! Thanks a lot &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 12:14:28 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/approve-reject-buttons-in-approve-widget-on-self-service-portal/m-p/580225#M152004</guid>
      <dc:creator>Bel_n Dom_nguez</dc:creator>
      <dc:date>2020-06-09T12:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Approve/Reject buttons in Approve widget on Self-Service Portal</title>
      <link>https://www.servicenow.com/community/itsm-forum/approve-reject-buttons-in-approve-widget-on-self-service-portal/m-p/580226#M152005</link>
      <description>&lt;P&gt;hi this isn't working for me ,what may be the issue.&lt;/P&gt;
&lt;P&gt;is it due to cloning ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 14:32:45 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/approve-reject-buttons-in-approve-widget-on-self-service-portal/m-p/580226#M152005</guid>
      <dc:creator>sheetal satle</dc:creator>
      <dc:date>2020-11-05T14:32:45Z</dc:date>
    </item>
  </channel>
</rss>

