- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2024 04:46 AM
Hi ,
I have a field Planned Hours in RITM table . I need to show this field only if catalog is Estimates .
If i open any RITM of estimates then only field should be displayed and for others catalog items field should not be displayed and also field should be mandatory . any suggestions on code wise .
Thanks in advance .
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2024 04:54 AM
You need to create UI Policy for this on sc_req_item table and in condition as item is <your_catalog item> and in ui policy action you need to set visibility for that field as false
This will definitely helps you to resolved your issue. Let me know in case you need to understand the flow or you can DM on LinkedIn.
If this solution resolves your query, kindly mark it as the accepted solution and give it a thumbs up.
Best Regards,
Krushna Birla
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2024 04:54 AM
You need to create UI Policy for this on sc_req_item table and in condition as item is <your_catalog item> and in ui policy action you need to set visibility for that field as false
This will definitely helps you to resolved your issue. Let me know in case you need to understand the flow or you can DM on LinkedIn.
If this solution resolves your query, kindly mark it as the accepted solution and give it a thumbs up.
Best Regards,
Krushna Birla
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2024 04:57 AM
Write a onload client script for RITM table and add the condition in the script.
Regards,
Deborah Brown
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2024 05:00 AM
Hi @Prashanth Ranga @Deborah Brown L
You don't need to use client script for this to make fields read only, mandatory and set visibility. Instead, you can use UI Policy as per the best practices provided by servicenow.
If this solution resolves your query, kindly mark it as the accepted solution and give it a thumbs up.
Best Regards,
Krushna Birla
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2024 11:27 PM
@Deborah Brown L Could you please mark above solution as the accepted solution that would be helpful. Thanks 🙂
Best Regards,
Krushna Birla