hide attachment icon

Priyansh_98
Tera Guru

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

Kalyani Jangam1
Mega Sage
Mega Sage

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.