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

snowuser13
Tera Contributor

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

Followed the steps provided in 

Support and Troubleshooting - How to disable/hide encryption popup for attachments on a catalog form...

 

Did not find the piece of code to hide the popup in the spAttachmentUpload script. Please let me know where to update the code for hiding the popup

 

find_real_file.png

Thanks 

6 REPLIES 6

Patrick Boutet
Mega Expert

Hi, 

Did you find how to disable Encryption popup form Portal ?
This popup appears in ROME but not in PARIS 

Regards

Community Alums
Not applicable

Hi,

Please find the piece of 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.