- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-24-2022 11:41 AM
Hi All,
I need to hide few fields on a form based on a condition and also for itil role. I am having 20+ fields on form and need to hide 3 fields.
Those 3 fields should not appear as per reporting purpose.
How can I proceed with this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-27-2022 09:37 PM
Hi,
you can use field level READ ACLs on those fields and hide those on list view
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
‎03-25-2022 01:44 AM
Hi Ankur,
If I use script to hide the fields, then those fields appear in the list view for reporting purpose right.
I donot want to display them in reports as they are confidential fields.
Kindly suggest
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-27-2022 09:37 PM
Hi,
you can use field level READ ACLs on those fields and hide those on list view
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
‎04-06-2022 11:32 PM
Hope you are doing good.
Did my reply answer your question?
If my response helped please close the thread by marking appropriate response as correct so that it benefits future readers.
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
‎04-16-2022 02:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-17-2022 03:23 AM
Hi Ankur,
I have written an onLoad Client script based on itil role.
If logged in user is having itil role, then it has to hide Description field(As of now, I am only hiding description field)
function onLoad() {
var role_check = g_user.hasRoleExactly('itil');
if(role_check)
{
g_form.setDisplay('description', false);
}
else
{
g_form.setDisplay('description', true);
}
}
This script working fine to hide Description field on Incident form if user is itil
I want to also hide the description column in list view also as it contains confidential data . This has to be hidden only for itil user and for rest others it should be visible.
Could you please help me how to achieve this. I have created an ACL with operation as add_to_list on incident table field level(description) acl.
As I need to hide only for itil and to display it other roles, what role Do I need to keep in roles section. There is no advanced option for this type of operation. Kindly suggest