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

Mihir Mohanta
Kilo Sage

Please go through below thread.



Re: Restrict Visibility of UI Macro



Thanks,


Mihir


Deepa Srivastav
Kilo Sage

Write a onload client script. Inside your condition add below.



gel('header_add_attachment').style.display='none';



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


Thanks,
Deepa


Hi Deepa,



I have tried with this before, but while the form is loading the users who are not part of the assignmnet group can click on those attachments. That's why i am trying with diffrent possibilities to hide those attachments effectively. Please suggest me if you have any other approach to acheive this.



Thanks and regards,


Swamy


have you tried using disable attachments?



Please check section 14.5 disableAttachments. You can achieve via script.


http://wiki.servicenow.com/index.php?title=GlideForm_(g_form)#disableAttachments



I want to disable "Manage Attachments ():" link on RITM form



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


Thanks,
Deepa