Restrict access to UI macro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2016 11:50 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2016 11:54 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2016 12:00 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2016 12:07 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2016 12:19 AM
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