- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2024 07:41 AM
Hello!
Im working on a functionality that will allow to change the status of a record when a button is clicked.
I have an UI Action (client) so that when the button is clicked 'reason for reject' shows up and is set to mandatory:
I want the approver to be obliged to provide 'reject reason' to be able to change the status to 'rejected'.
Here is my UI action:
is it possible to call Script Include that will handle the logic of the record update? (changing the field value to 'rejected' and adding the 'reject reason').
Thank you in advance!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2024 08:14 AM
I corrected this in my reply above, see this
if( g_form.getValue('u_activity')== ''){ // this if was wrong
return false; //Abort submission
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2024 05:30 AM
Thank you for marking my response as helpful.
As per new community feature you can mark multiple responses as correct.
If my response helped please mark it correct as well so that it benefits future readers and it has an alternate solution.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader