Restrict access to UI macro

amaradiswamy
Kilo Sage

Hi All,

Is there any way to hide/show UI macro( managment attachment macro on incident form) based on the condition?( like it should be visible if the logged in user is part of the assignment group otherwise hide the macro)

Thanks and regards,

swamy

13 REPLIES 13

Yes, i have used both. disable attachments is to hide the paper clip icon.I want to hide both paper clip icon and manage attachments.



Thanks and regards,


Swamy


Try below and let me know.



g_form.disableAttachments();


var ma = gel('header_attachment_list');  


ma.style.display = 'none';



Mark Correct if it solved your issue or hit Like and Helpful if you find my response worthy.


Thanks,
Deepa


Midhun1
Giga Guru

Hi Amaradi,



You need to write onload()   script and check the required condition and then use   g_form.disableAttachments(); to hide attachment icon.


Yes, first i have tried with the above script only. My only concern is like the form is loading slowly



Thanks and reagrds,


Swamy


so you mean now manage attachment link is not visible?Mark Correct if it solved your issue or hit Like and Helpful if you find my response worthy.




Thanks,
Deepa