- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2025 03:46 AM
Hello Team,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2025 04:01 AM
Hi @ankitaankit
Check your UI Policy applies on global, check this global box Checked.
Also add field in these views 'service operation workspace" and "service operation workspace new record". Please refer screen shot for your reference
If my response solves your query, please marked helpful by selecting Accept as Solution and Helpful. Let me know if anything else is required.
Thanks,
Prerna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2025 03:59 AM
Please delete this duplicate question.
Your similar question is already having a comment.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2025 04:01 AM
Hi @ankitaankit
Check your UI Policy applies on global, check this global box Checked.
Also add field in these views 'service operation workspace" and "service operation workspace new record". Please refer screen shot for your reference
If my response solves your query, please marked helpful by selecting Accept as Solution and Helpful. Let me know if anything else is required.
Thanks,
Prerna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2025 04:02 AM
You need to combine an onLoad Client Script with your existing onChange Client Script to ensure the field is hidden or shown correctly on form load.
1. onLoad Client Script
function onload(){
var priority = g_form.getValue('priority');
if (priority !== '1') {
g_form.setDisplay('summary', false);
} else {
g_form.setDisplay('summary', true);
}
}
2.onChange Client Script (on Priority field)
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (gForm.getValue('priority') === '1') {
gForm.setDisplay('summary', true);
} else {
gForm.setDisplay('summary', false);
}
}
Make sure that below points are validated.
- Add the field to the SOW form layout.
- Add both onLoad and onChange Client Scripts.
- Confirm the ACL applies to the requirement view.
- Test with different users and priorities.