- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2018 01:15 PM
Has anyone had any luck implementing the Government System privacy warning message (e.g. "You are accessing a U.S. Government information system...Unauthorized or improper use of this system may result in disciplinary action...") on login?
I'm using a UI script to open a dialog, but it opens on every page load instead of just on login. Is there a way to fire this UI script only on login? Some other methods I've seen use a table to log each user and not show the form again during a certain interval. I'd like to use a lighter footprint than that if possible.
addLoadEvent( function()
{
if(window.frameElement)
{
if(window.frameElement.id == 'gsft_main')
{
govtSystemDialog = new GlideDialogWindow('govt_system_dialog');
govtSystemDialog.setSize('700', '1200');
govtSystemDialog.setTitle('***WARNING***');
govtSystemDialog.render();
}
}
});
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2018 04:59 AM
Howdy,
We use session storage to create a local variable and check against it. I've modified code you've posted:
var govt_warning_displayed = sessionStorage.getItem('govt_warning_displayed');
if(!govt_warning_displayed && window.frameElement && window.frameElement.id == 'gsft_main'){
govtSystemDialog = new GlideDialogWindow('govt_system_dialog');
govtSystemDialog.setSize('700', '1200');
govtSystemDialog.setTitle('***WARNING***');
govtSystemDialog.render();
sessionStorage.setItem('govt_warning_displayed', true);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2018 03:28 PM
Hi jkessler,
We have the message on the login page. We set it up under "Welcome Page Content".
Would that work or do you have to make it a pop up?
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2018 04:59 AM
Howdy,
We use session storage to create a local variable and check against it. I've modified code you've posted:
var govt_warning_displayed = sessionStorage.getItem('govt_warning_displayed');
if(!govt_warning_displayed && window.frameElement && window.frameElement.id == 'gsft_main'){
govtSystemDialog = new GlideDialogWindow('govt_system_dialog');
govtSystemDialog.setSize('700', '1200');
govtSystemDialog.setTitle('***WARNING***');
govtSystemDialog.render();
sessionStorage.setItem('govt_warning_displayed', true);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2018 07:21 AM
Thank you. This is nice and simple, and works.