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

Hi @Ankur Bawiskar ,


I have tried the method you mentioned, and it works well in the native view. However, it is not working in the workspaces. My requirement is to display an info message in the workspace (CSM Workspace and SOW Workspace) when the attachment icon is clicked.


I would appreciate your assistance with this.


Thank you in advance!

Hi @Ankur Bawiskar ,

 

I have tried the method you mentioned, and it works well in the native view. However, it is not working in the workspaces. My requirement is to display an info message in the workspace (CSM Workspace and SOW Workspace) when the attachment icon is clicked.


I would appreciate your assistance with this.


Thank you in advance!

@deepig2000 

it's not going to work in workspace as workspace don't use UI page etc for attachment popup.

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

Hi @Ankur Bawiskar ,

 

Thank you for your reply. Could you please assist me in making it work in the workspace?

 

 

@deepig2000 

Not feasible or you will have to explore how the attachment popup works in workspace or identify the component behind that.

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