- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2016 08:22 AM
Folks,
Is it possible to hide 'Save' button in reports? I don't want show this to end users?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2016 10:37 AM
Hello Robert,
Thanks for the help. I am able achieve this using UI script (we can use with client script as well)
window.addEventListener('load', reportVisitorStyle());
function reportVisitorStyle()
{
window.onload = function()
{
//get iframe reference and hide elements
var frame = document.getElementById("Visitor Count2");
if(frame!= null)
{
frame.contentWindow.document.getElementById('save-report').style.display = 'none';
frame.contentWindow.document.getElementById('dropdownMenu1').style.display = 'none';
frame.contentWindow.document.getElementsByClassName('main-settings')[0].style.display = 'none';
}
};
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2016 08:35 AM
You will need to modify the "write" ACL on the sys_report table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2016 09:08 AM
My intention is to hide 'Save' button and Table, columns selection section as shown in image. I just want users to modify the query condition if they need. When I disabled write acl on 'sys_report' table, report shows an error message 'Security constraints prevent saving reports - displaying report as read-only' and does not allow users to change query conditions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2016 10:26 AM
I'm not sure ServiceNow allows customers to change that interface. Even with UI Actions. These posting are a little old but might be informative for you. Try contacting your ServiceNow technical consultant or their support department for more information.
Re: Hide the Export to PDF link in Reports
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2016 10:37 AM
Hello Robert,
Thanks for the help. I am able achieve this using UI script (we can use with client script as well)
window.addEventListener('load', reportVisitorStyle());
function reportVisitorStyle()
{
window.onload = function()
{
//get iframe reference and hide elements
var frame = document.getElementById("Visitor Count2");
if(frame!= null)
{
frame.contentWindow.document.getElementById('save-report').style.display = 'none';
frame.contentWindow.document.getElementById('dropdownMenu1').style.display = 'none';
frame.contentWindow.document.getElementsByClassName('main-settings')[0].style.display = 'none';
}
};
}