<?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 make comments field mandatory when approval request rejected through List Choice? in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/how-to-make-comments-field-mandatory-when-approval-request/m-p/1967444#M624370</link>
    <description>&lt;P&gt;Yeah I understand. Since the original request was for making it mandatory in list choice, hence thought of checking.&lt;/P&gt;</description>
    <pubDate>Mon, 01 Jul 2019 09:08:54 GMT</pubDate>
    <dc:creator>Sanbir Singh1</dc:creator>
    <dc:date>2019-07-01T09:08:54Z</dc:date>
    <item>
      <title>How to make comments field mandatory when approval request rejected through List Choice?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-make-comments-field-mandatory-when-approval-request/m-p/1967437#M624363</link>
      <description>&lt;P&gt;Hi team,&lt;/P&gt;
&lt;P&gt;please guide me&amp;nbsp;How to make comments field mandatory when approval request rejected through List Choice?&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Deepika&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/58421i2D5B59B610AF8CD5/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>Tue, 29 Jan 2019 11:47:27 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-make-comments-field-mandatory-when-approval-request/m-p/1967437#M624363</guid>
      <dc:creator>Deepika N</dc:creator>
      <dc:date>2019-01-29T11:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to make comments field mandatory when approval request rejected through List Choice?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-make-comments-field-mandatory-when-approval-request/m-p/1967438#M624364</link>
      <description>&lt;P&gt;Approval, reject and request are UI actions. you can add a message in the ui action&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/58419i6B2FCBAF3BDC1C88/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>Tue, 29 Jan 2019 12:24:22 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-make-comments-field-mandatory-when-approval-request/m-p/1967438#M624364</guid>
      <dc:creator>rad2</dc:creator>
      <dc:date>2019-01-29T12:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to make comments field mandatory when approval request rejected through List Choice?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-make-comments-field-mandatory-when-approval-request/m-p/1967439#M624365</link>
      <description>&lt;P&gt;Hello Deepika,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I too had encountered with similar requirement in our project. Since the field have to be mandatory at the related list records, we have created a business rule in approval table. Basically the business rule will display an error message to enter the comments in the approval records before approval or rejection and abort the action to not to make any updates. I hope this could be good for your requirement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and Regards,&lt;/P&gt;
&lt;P&gt;Jagadeesh&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 14:34:19 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-make-comments-field-mandatory-when-approval-request/m-p/1967439#M624365</guid>
      <dc:creator>Jagadeesh R1</dc:creator>
      <dc:date>2019-01-29T14:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to make comments field mandatory when approval request rejected through List Choice?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-make-comments-field-mandatory-when-approval-request/m-p/1967440#M624366</link>
      <description>&lt;P&gt;Can you share the snapshot of the BR you're referring to? I ask this because Comments is a Journal field and will always return empty on load. It will be great if you can share what's working for you.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 07:02:54 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-make-comments-field-mandatory-when-approval-request/m-p/1967440#M624366</guid>
      <dc:creator>Sanbir Singh1</dc:creator>
      <dc:date>2019-07-01T07:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to make comments field mandatory when approval request rejected through List Choice?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-make-comments-field-mandatory-when-approval-request/m-p/1967441#M624367</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I have used before update business rule with conditions having state is rejected and the below is the script I have used.&lt;/P&gt;
&lt;P&gt;if(current.comments==""){&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;gs.addErrorMessage("Please go into the Approval Record to provide a Reason for Rejecting.");&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;current.setAbortAction(true);&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt; }else{&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt; }&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>Mon, 01 Jul 2019 07:34:49 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-make-comments-field-mandatory-when-approval-request/m-p/1967441#M624367</guid>
      <dc:creator>Jagadeesh R1</dc:creator>
      <dc:date>2019-07-01T07:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to make comments field mandatory when approval request rejected through List Choice?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-make-comments-field-mandatory-when-approval-request/m-p/1967442#M624368</link>
      <description>&lt;P&gt;This wouldn't work on the related list since we are just asking the user to move to Approval form and fill the comments/reject there itself.&lt;/P&gt;
&lt;P&gt;Even if you have something in comments, it will throw the error and not let you reject the CHG via list view.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 07:50:01 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-make-comments-field-mandatory-when-approval-request/m-p/1967442#M624368</guid>
      <dc:creator>Sanbir Singh1</dc:creator>
      <dc:date>2019-07-01T07:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to make comments field mandatory when approval request rejected through List Choice?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-make-comments-field-mandatory-when-approval-request/m-p/1967443#M624369</link>
      <description>&lt;P&gt;For my requirement it is working fine.&amp;nbsp;If user rejects from approval form without entering anything in comments the BR will abort. Unless the user enters something in comments then the BR goes to else loop.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 08:07:29 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-make-comments-field-mandatory-when-approval-request/m-p/1967443#M624369</guid>
      <dc:creator>Jagadeesh R1</dc:creator>
      <dc:date>2019-07-01T08:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to make comments field mandatory when approval request rejected through List Choice?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-make-comments-field-mandatory-when-approval-request/m-p/1967444#M624370</link>
      <description>&lt;P&gt;Yeah I understand. Since the original request was for making it mandatory in list choice, hence thought of checking.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 09:08:54 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-make-comments-field-mandatory-when-approval-request/m-p/1967444#M624370</guid>
      <dc:creator>Sanbir Singh1</dc:creator>
      <dc:date>2019-07-01T09:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to make comments field mandatory when approval request rejected through List Choice?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-make-comments-field-mandatory-when-approval-request/m-p/1967445#M624371</link>
      <description>&lt;P&gt;I'm struggling with the same requirement.&amp;nbsp; Did you ever find a solution?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 17:41:48 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-make-comments-field-mandatory-when-approval-request/m-p/1967445#M624371</guid>
      <dc:creator>scottneeb</dc:creator>
      <dc:date>2020-01-09T17:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to make comments field mandatory when approval request rejected through List Choice?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-make-comments-field-mandatory-when-approval-request/m-p/1967446#M624372</link>
      <description>&lt;P&gt;Hi Deepika,&lt;/P&gt;
&lt;P&gt;You need to add the code to set comments mandatory in the UI action condition&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Ruturaj&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS: Please mark helpful/correct&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 17:47:41 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-make-comments-field-mandatory-when-approval-request/m-p/1967446#M624372</guid>
      <dc:creator>ruturajshir</dc:creator>
      <dc:date>2020-01-09T17:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to make comments field mandatory when approval request rejected through List Choice?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-make-comments-field-mandatory-when-approval-request/m-p/1967447#M624373</link>
      <description>&lt;P&gt;Hi Deepika,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Condition: 'requested'&amp;amp;&amp;amp;(gs.hasRole('approval_admin') || isApprovalMine(current)&lt;/P&gt;
&lt;P&gt;Script:&lt;/P&gt;
&lt;P&gt;if(!current.comments.isNil()){&lt;/P&gt;
&lt;P&gt;&amp;nbsp;current.state='rejected';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;current.update();&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;esle{&lt;/P&gt;
&lt;P&gt;gs.addInfomessage("Comments are mandatory");&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please hit Correct/helpful based on impact.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Darshani sambare&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 18:00:43 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-make-comments-field-mandatory-when-approval-request/m-p/1967447#M624373</guid>
      <dc:creator>Darshani Sambar</dc:creator>
      <dc:date>2020-01-09T18:00:43Z</dc:date>
    </item>
  </channel>
</rss>

