hide attachment icon
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2023 02:20 AM
i want to hide attachment and icon also for set of specific user(based on role) in a RITM table how can i do that?
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2023 05:52 AM
Hi @prs1
Use Onload client script on RITM table of below code for attachment icon
function onLoad() {
if(!g_user.hasRole('admin')){ // add role as per your requirement
g_form.disableAttachments();
}
}
For attachment file use Read ACL in sys_attachment table for table_name='sc_req_item' and table sys_id=''// sys_id of RITM table. It will hide existing attachment file
Please check and mark helpful and correct if it really help you.