consent popup on instance

June Anderson
Tera Contributor

I asked this question earlier but asked it wrong, wanted to update my question. please assist as I am yet to do any kind of content. This will be my first

 

 

 

I need to add a simple content pop-up to our production instance for when the user enters the URL, e.g. "www.servicenow.com" and hits enter, upon loading the page, they will receive a pop-up requesting them to accept the content. This should only happen once after the login to the instance and should not occur again throughout their section or when they open up another tab

 

The content should read something like the example below

 

" You are accessing a private property of company ABC that is provided for ABC- Authorized users only. By using this (which includes any device attached to this), you are consenting to the following conditions"

 

Thank you 

 

How can I configure this?  Detailed Steps will be appreciated as I am still transitioning into development 

11 REPLIES 11

Please read all the comments on the link I sent. I hope this resolves your query.


***Mark Correct or Helpful if it helps.***

@Yousaf 

 

i have attempted your direction, I cannot see to get past the ui script because I keep getting an error on line 6, can you take a look to see what I may be doing wrong. I have been staring at it since morning and I feel like I am losing it

 

addLoadEvent(function() {
    var session = gs.getSession();
if (session.getClientData('popup_triggered')) {
return;
}
if(window.name !== 'gsft_main') || (window.parent.document.URL.indexOf("login.do") > -1)) {
console.log("prevent popup in this window or on this page");
return;
}
session.putClientData('popup_triggered','true');

//Ensure that we call the dialog for the correct frame
if (window.frameElement) {
if (window.frameElement.id == 'gsft_main') {
showTerms();
}
}
else if (!window.frameElement) {
if(!('gsft_main')) {
showTerms();
}
}
)); 

 

find_real_file.png

Hi June

Can you please copy paste the one I sent in the first answer it will work

if it doesn't just format your code by selecting all (ctrl + a) and pressing shift+tab. 


***Mark Correct or Helpful if it helps.***

I copied your code and after saving, I logged out the instance and logged back in . There was no popup

This was just one step. Whole process is here I really hope it works for you. make changes if you want.

Display terms and conditions on Login


***Mark Correct or Helpful if it helps.***