<?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 While closing PTASK  I need to check some conditions in Community Central forum</title>
    <link>https://www.servicenow.com/community/community-central-forum/while-closing-ptask-i-need-to-check-some-conditions/m-p/3330697#M3882</link>
    <description>&lt;P&gt;I need some help to implement the functionality. Requirements are as follow: User should be able to close the PTASK only when in the Closure Tab Related Links it has two options Change Number: Change should be in reviewed or closed state and Training date: Date should be future date but till satisfying these conditions the PTASK should not get closed it should throw an error message on the PTASK form that the Date is still in further you cant close the PTASK and if Change is not in reviewed or closed state it should throw and error msg that tha Change is not yet closed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly help me for the same that how should I implement this functionality on the PTASK form on Close Button.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Jul 2025 13:27:21 GMT</pubDate>
    <dc:creator>shivani_jamdade</dc:creator>
    <dc:date>2025-07-22T13:27:21Z</dc:date>
    <item>
      <title>While closing PTASK  I need to check some conditions</title>
      <link>https://www.servicenow.com/community/community-central-forum/while-closing-ptask-i-need-to-check-some-conditions/m-p/3330697#M3882</link>
      <description>&lt;P&gt;I need some help to implement the functionality. Requirements are as follow: User should be able to close the PTASK only when in the Closure Tab Related Links it has two options Change Number: Change should be in reviewed or closed state and Training date: Date should be future date but till satisfying these conditions the PTASK should not get closed it should throw an error message on the PTASK form that the Date is still in further you cant close the PTASK and if Change is not in reviewed or closed state it should throw and error msg that tha Change is not yet closed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly help me for the same that how should I implement this functionality on the PTASK form on Close Button.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 13:27:21 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/while-closing-ptask-i-need-to-check-some-conditions/m-p/3330697#M3882</guid>
      <dc:creator>shivani_jamdade</dc:creator>
      <dc:date>2025-07-22T13:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: While closing PTASK  I need to check some conditions</title>
      <link>https://www.servicenow.com/community/community-central-forum/while-closing-ptask-i-need-to-check-some-conditions/m-p/3330728#M3888</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/503225"&gt;@shivani_jamdade&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For this you have to implement a before business rule and condition should be state changes to Closed. In Advanced section, please Gliderecord Change and check its state and put condition for training date has to be greater than today.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if you want script for that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for&lt;BR /&gt;Kind Regards,&lt;BR /&gt;Pavani P&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 13:48:19 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/while-closing-ptask-i-need-to-check-some-conditions/m-p/3330728#M3888</guid>
      <dc:creator>pavani_paluri</dc:creator>
      <dc:date>2025-07-22T13:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: While closing PTASK  I need to check some conditions</title>
      <link>https://www.servicenow.com/community/community-central-forum/while-closing-ptask-i-need-to-check-some-conditions/m-p/3330732#M3889</link>
      <description>&lt;P&gt;It will be good if you provide the script much needed and helpful for me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 13:51:25 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/while-closing-ptask-i-need-to-check-some-conditions/m-p/3330732#M3889</guid>
      <dc:creator>shivani_jamdade</dc:creator>
      <dc:date>2025-07-22T13:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: While closing PTASK  I need to check some conditions</title>
      <link>https://www.servicenow.com/community/community-central-forum/while-closing-ptask-i-need-to-check-some-conditions/m-p/3330734#M3890</link>
      <description>&lt;P&gt;What about the Client Script for onSubmit? Will it be feasible??&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 13:52:07 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/while-closing-ptask-i-need-to-check-some-conditions/m-p/3330734#M3890</guid>
      <dc:creator>shivani_jamdade</dc:creator>
      <dc:date>2025-07-22T13:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: While closing PTASK  I need to check some conditions</title>
      <link>https://www.servicenow.com/community/community-central-forum/while-closing-ptask-i-need-to-check-some-conditions/m-p/3331050#M3897</link>
      <description>&lt;P&gt;Client script you have to write on submit, write glideajax and xmlwait you have to use. I would prefer business rule for it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pavani P&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 16:54:01 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/while-closing-ptask-i-need-to-check-some-conditions/m-p/3331050#M3897</guid>
      <dc:creator>pavani_paluri</dc:creator>
      <dc:date>2025-07-22T16:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: While closing PTASK  I need to check some conditions</title>
      <link>https://www.servicenow.com/community/community-central-forum/while-closing-ptask-i-need-to-check-some-conditions/m-p/3331581#M3924</link>
      <description>&lt;P&gt;Can you please help me with the Script for Business Rule? and all the conditions to add &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2025 08:01:16 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/while-closing-ptask-i-need-to-check-some-conditions/m-p/3331581#M3924</guid>
      <dc:creator>shivani_jamdade</dc:creator>
      <dc:date>2025-07-23T08:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: While closing PTASK  I need to check some conditions</title>
      <link>https://www.servicenow.com/community/community-central-forum/while-closing-ptask-i-need-to-check-some-conditions/m-p/3342048#M4130</link>
      <description>&lt;P&gt;I’ve handled similar validation on PTASK closure using a Business Rule with current.state.changesTo('Closed') and condition checks on related fields. If the criteria aren’t met—like missing actual hours or open subtasks—I use gs.addErrorMessage() to block the update. Client scripts can catch it earlier, but server-side validation ensures data integrity. Just watch out for recursion if you’re updating related records.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Aug 2025 10:51:33 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/while-closing-ptask-i-need-to-check-some-conditions/m-p/3342048#M4130</guid>
      <dc:creator>StephenR0086629</dc:creator>
      <dc:date>2025-08-02T10:51:33Z</dc:date>
    </item>
  </channel>
</rss>

