UI action visibility based on condition
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2024 04:55 AM
Hello,
I need one requirement, the recruitment is when the "abc" user open the incident record if the user have the read access of the record they won't able to see the cancel UI action button, if the user having the write access of the record then they can able to see the cancel ui action,,here i have create the one SI but it's not working any one help on this or can we added into Ui action ?
showResponseTaskButton: function(current, view, type) {
if (view == 'security_itil')
return false;
else if (view == 'nonit_security')
return false;
else if (view == '' && type == 'link')
return false;
else if (view == '' && type == 'context')
return false;
else if (current.active == true && (gs.hasRole('abc') ||gs.hasRole('xyz') || gs.hasRole('')test))
return true;
return false;
},
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2024 05:38 AM
are you saying user will only have write access but no read access on record?
this is not possible
Seems your requirement is not clear
It should be simple what I mentioned -> if user has write access then it's obvious that they will have the read access to the record
are you having some other visibility condition for the record? query BR or some other table level READ ACL?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader