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-12-2016 12:21 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2016 01:07 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2016 02:27 AM
Hi Amaradi,
You need to write onload() script and check the required condition and then use g_form.disableAttachments(); to hide attachment icon.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2016 02:30 AM
Yes, first i have tried with the above script only. My only concern is like the form is loading slowly
Thanks and reagrds,
Swamy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2016 02:32 AM
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