Edit the content in attachment alert popup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2024 09:35 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2024 01:10 PM - edited 02-22-2024 01:12 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2024 03:42 AM
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.?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2024 04:31 AM - edited 02-26-2024 04:35 AM
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,
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