- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2020 08:20 AM
Hi all,
I want to Hide few fields in Incident form for certain groups accessing it in servicenow. how can i achieve this thorough UI policy or ACL or Business rule.
thanks
Siddharth
Solved! Go to Solution.
- Labels:
-
Application Portfolio Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2020 10:35 PM
Glad that it worked.
Would you mind marking my response as correct & helpful if I am able to resolve your query?
Regards
Ankur
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-29-2020 05:51 AM
Hi Ankur,
i have created the Display BR and Client script as above , i have use field business_service to hide from Incident form, But as soon i login as system admin , i dont see the field as am not member for any group ,the group which i have used in BR is cpapcity mgmt , so as per the script members from that group only should be not able to see the field right , it should hide fields only for those two users
David Loo
Don Goodliffe who are part of capacity mgmt.
thanks
Siddharth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2020 07:51 AM
Hi Siddharth,
please impersonate with the group members.
So if logged in user is member of Capacity Management group then it should hide.
If this is your requirement then please update as below
function onLoad(){
if(g_scratchpad.isMember.toString() == 'true'){
// hide your fields one by one
g_form.setVisible('field1', false); // your field name here
g_form.setVisible('field2', false); // your field name here
}
}
Regards
Ankur
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-29-2020 11:08 AM
Hi Ankur,
Thanks a lot for your help.your awesome.
thanks
Siddharth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2020 10:35 PM
Glad that it worked.
Would you mind marking my response as correct & helpful if I am able to resolve your query?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2024 08:06 AM
@Ankur Bawiskar Could you please share BR and Client script here, I am looking for same condition.