While closing PTASK I need to check some conditions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-22-2025 06:27 AM
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.
Kindly help me for the same that how should I implement this functionality on the PTASK form on Close Button.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-22-2025 06:48 AM
Hi @shivani_jamdade ,
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.
Let me know if you want script for that.
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Pavani P
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-22-2025 06:51 AM
It will be good if you provide the script much needed and helpful for me 🙂
Thanks in advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-22-2025 06:52 AM
What about the Client Script for onSubmit? Will it be feasible??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-22-2025 09:54 AM
Client script you have to write on submit, write glideajax and xmlwait you have to use. I would prefer business rule for it.
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Pavani P