Attachment pop-up

Sri56
Tera Contributor

Hi All,

Can someone please help me how to display a pop-up message as soon as i clicked in attachment icon in technical view.

Below screenshot is for reference:

find_real_file.png

1 ACCEPTED SOLUTION

Hi Sri,

 

Here is the approach:

go to left navigation; search in ui pages with name as attachment

in the script add like this;

<script type="language/javascript">
$j( document ).ready(function() {
alert("Attachment Icon Clicked Disclaimer");
});
</script>

screenshot below:

find_real_file.png

 

when icon is clicked it should look like this; but caution that it would be a global change

find_real_file.png

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

11 REPLIES 11

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Sri,

That would require to have global change on attachment ui page.

What is your exact requirement? why you want to show the pop-up?

Regards

Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi Ankur,

Yes, It needs to globally enabled in UI Page.

We need to attach disclaimer(as a pop-up message) once the attachment icon is clicked.

PLease help where i need to add the code.

 

Thanks,

Sri

Hi Sri,

 

Here is the approach:

go to left navigation; search in ui pages with name as attachment

in the script add like this;

<script type="language/javascript">
$j( document ).ready(function() {
alert("Attachment Icon Clicked Disclaimer");
});
</script>

screenshot below:

find_real_file.png

 

when icon is clicked it should look like this; but caution that it would be a global change

find_real_file.png

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Thanks Ankur!! 🙂