How to Make one of the related list tab Mandatory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2024 08:38 AM
if user click "close case" button then
‘Type’ field is ‘sla’ and the ‘SLA Breach Code’ field is not empty(It'a choice field). If both conditions are met, it allows the form to be submitted. Otherwise, it displays an error message and prevents the form from being submitted. This ensures that the form can only be submitted when the ‘Type’ field is ‘sla’ and the ‘SLA Breach Code’ field is filled
I want code
Thank You.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2024 09:08 AM
Hi @Hanook
https://www.servicenow.com/community/itsm-forum/how-to-make-related-list-as-mandatory/m-p/827850
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2024 09:09 AM
Please review https://www.servicenow.com/community/itsm-forum/mandatory-related-list/m-p/813518 for the solution.
If my response helped you, please mark it as correct or helpful.
If my response helped you, please click on "Accept as solution" and mark it as helpful.
- Saloni
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2024 09:14 AM
Hi @Hanook ,
So here your trying to check if the fields are populated before closure of Case, which is a UI action.
You can append a code which checks if the fields are populated before closure. If found empty you can return back to current record with an error message.
Please share the UI action code of close case to help you with code. I hope this helps..
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2024 03:07 AM
hello@sohial
i tried with this code but its not working
let me know if any changes required
Thank You.