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 deepa, it worked like a charm. but, onload if i click on one of the attachments then it is not hiding. that' why i want to hide before giving control to user.



Thanks and regard,


Swamy


Can you provide the screenshot of what you can see after load... and also the code screenshot.



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


Thanks,
Deepa


To increase the performance i have even placed my condition in an g_scratchpad variable and used in onload script. but no luck. even tried with getXmlWait() as per mark stranger's suggestion.



Thanks and regards,


swamy


Midhun1
Giga Guru

I think this is the only way to achieve with conditions.