- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2018 04:09 AM
Hi Team,
Need to set mandatory fields while closing the task (closed complete).
After approval 1st task will be created, once we close the 1st task, additional task should be created.
Could you please help me how to set mandatory fields while closing the task (closed complete) only for 1st task.
Regards,
Saridha.L.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2018 04:36 AM
of course ui policy . if things can happen without script then use OOTB functionality . its beauty of service-now. 🙂

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2018 04:24 AM
do you have any thing unique on your first task? some of the extra variable or field value?
based on those things you can set your field mandatory.. if you have not then just a workaround. create hidden field true false.. that will be checked only for first task and for other it will be unchecked so based on the condition you can mark your field mandatory also..
Thanks,
Harshvardhan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2018 04:27 AM
Hi Harshvardhan,
Thank you for your response.
2 fields are common and other fields are unique.
Could you please suggest me , shall I use client script or UI Policy.
Regards,
Saridha.L

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2018 04:36 AM
of course ui policy . if things can happen without script then use OOTB functionality . its beauty of service-now. 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2018 10:11 PM
Hi Harshvardhan,
I have a requirement to set mandatory field to only one task in the catalog item. UI Policy is not working, can you please advise.
Regards,
Saridha.L