Hide Info Icons beside reference field.

Rocky5
Kilo Sage

Hello Experts,

Using ACLs I have made few reference fields like opened by, caller,  and affected user read-only for users who has specific role, And now I want to hide the "info" icon and "show related incidents" icon marked only for users with that specific role or on the specific view. screenshot below is for reference.

How can I achieve that?

 

find_real_file.png

Thanks,

Rocky.

10 REPLIES 10

Hello Chetan,

 

Tried your script, didn't work. any other input?

 

Thanks.

Rocky.

Hi Rocky,

                if those field will not be editing by those roles, we can use setreadonly() in the Same script, to make those field read only for particular Role, so icon automatically hide. 

g_form.setReadOnly('value', true);

 

DOM Manipulation is not recommended and will probably be broken in the next upgrade.

Hi Maik,

 

So, what could be the alternative solution?

 

Thanks,

Rocky.

Hi Rocky,

that info icon is one of the most useful and used functions, and therefore it makes no sense to find any not-recommended way to hide that.

Why? What is the problem you or your customer have with that? And is it really worth the efforts or troubles you will have?

Use OOTB functionalities as much as you can, and you are well-prepared for the next upgrade.

Kind regards
Maik