Edit the content in attachment alert popup

siva ram1
Kilo Contributor

I am looking to edit the content in the attachment popup but could not find the source to do that.. Can any one suggest where to do that.

current content : File is larger than the maximum file size of attachments.

expected content: File is larger than the maximum file size of attachments. Make sure you add files that are below 25mb and also  show guidelines

 

sivaram1_0-1708671851193.png

 

3 REPLIES 3

swathisarang98
Giga Sage
Giga Sage

Hi @siva ram1 ,

 

For the Attachment pop up there is a page, navigate to System UI -> UI pages -> search Attachment in name, check the client script or html script part to update your content,

 

Please mark this comment as Correct Answer/Helpful if it helped you.

Regards,

Swathi Sarang

Hi Swathi,

Thank you for your reply, I was able to find the UI page and change the content in the popup but unable to add a link to the content in popup message. Can you please guide me how to do that.?

Hi @siva ram1 ,

 

As i have checked you cannot add Hyperlinks to alert box instead you can use g_form.addInfomessage() ,

 

 

 

<script type="language/javascript">
	$j( document ).ready(function() {
	var guideString ='<a class="web" target="_blank" href="https://www.servicenow.com/community">Click Here</a>';
	//alert("File is larger than the maximum size " + guideString);
	g_form.addInfoMessage('File is larger than the maximum size ' +' '+ guideString);
	});
	</script>

 

 

 

If the above doesn't work for you, you can refer to below article,

https://www.servicenow.com/community/itsm-forum/is-there-a-way-to-add-a-link-hyperlink-to-an-alert-p...  

 

Please mark this comment as Correct Answer/Helpful if it helped you.

Regards,

Swathi Sarang

Please mark this comment as Correct Answer/Helpful if it helped you.

Regards,

Swathi Sarang