Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Hide Encryption context in Portal

pramodkumar
Tera Expert

Hi All,

We have recently upgraded to Xanadu. when a user uploads an attachment in esc portal, the pop up shows current encryption context with drop down choices. can we hide this?

 

 

Thanks!

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@pramodkumar 

check this link

How to disable/hide encyrption popup for attachments on a catalog form in Service Portal 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Runjay Patel
Giga Sage

Hi @pramodkumar ,

 

Hi,

Use modified code and XML for the angular provided attached.

 

function(spModal, $q, i18n) {
'use strict';
return {
uploadAttachments: function(attachmentHandler, files) {
if (!files || !files.length)
return;
if (!g_has_encryption_context || g_has_encryption_context) {
attachmentHandler.onFileSelect(files);
return;
}
attachmentHandler.onFileSelect(files);
}
}
}

 

Please find the below steps to add it to the widget:

 

  • Download the file attached.
  • Go to the "sp_angular_provider" table in your instance and import the "sp_angular_provider_4b7be1a087fa4110db63ece60cbb3504.xml" file into the table.
  • Then go to the "Service Portal > Widgets" and find your catalog item widget. It is the "SC Catalog Item" by default if it is not changed. Open the "SC Catalog Item" widget. 
  • At the bottom of the page, you will see the "Angular Providers" related list. Please click the "Edit" button to edit the list.
  • Add the "spAttachmentUpload" script to the list and save it.

 

 

-------------------------------------------------------------------------

If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.


Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay

-------------------------------------------------------------------------

In this series i have explained about ServiceNow Discovery right from scratch like how you can enable the discovery plugin, what are the discovery prerequisites, what all question you should ask for your client before start the discovery implementation, how you can configure discovery schedules ...