- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2018 07:32 AM
I have a need to hide attachments on Stories from users with the scrum_reader role. I have created the following onLoad client script on the rm_story table, but when I impersonate a user with the scrum_reader role, I am still seeing the attachment. What am I missing?
function onLoad() {
if(g_user.hasRole('scrum_reader')) {
g_form.disableAttachments();
}
}
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2018 07:37 AM
Hi
please try this in your client script.
gel('header_attachment').style.display='none';
Mark correct if it helps.
Regards,
Omkar Mone
www.dxsherpa.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2018 07:56 AM
I replaced g_form.disableAttachments(); with gel('header_attachment').style.display='none'; and this worked. Thanks!